FIX: Use link references to shorten markdown

FIX: Use link references to shorten markdown

diff --git a/lib/chart_helper.rb b/lib/chart_helper.rb
index cc4b43e..340ab04 100644
--- a/lib/chart_helper.rb
+++ b/lib/chart_helper.rb
@@ -90,7 +90,7 @@ module ::DevAdditions
           percent = ((top_duration - (top_duration - row[:duration])) / top_duration) * 100
           percent = "#{percent.round(2)}%"
           desc = row[:description].gsub("|", "\\|")
-          user_link = "[#{row[:username]}](#{post.topic.url}/#{row[:post_number]})"
+          user_link = "[#{row[:username]}][#{row[:post_number]}]"
 
           markdown << <<~MD
           #{desc}|#{user_link}|#{row[:duration]}|#{row[:variance]}|#{percent}|
@@ -98,6 +98,12 @@ module ::DevAdditions
         end
       end
 
+      rows.each do |row|
+        markdown << <<~MD
+        [#{row.post_number}]: #{post.topic.url}/#{row.post_number}
+        MD
+      end
+
       op = Post.find_by(topic_id: post.topic_id, post_number: 1)
       raw = op.raw.split("<!--AUTO-->", 3)
       raw[1] = markdown

GitHub sha: 8e909016