summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-05-22 14:27:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-05-22 14:27:38 +0200
commit0bc619ea8d4c50b5318f3922ab58894b6e2c5335 (patch)
tree27ecef83e96247b258c37b85e1a1eaf0a60847b4
parentae5f16c5e140e5ae144d4df144f8f866d80f9152 (diff)
downloadrules-vault-0bc619ea8d4c50b5318f3922ab58894b6e2c5335.zip
rules-vault-0bc619ea8d4c50b5318f3922ab58894b6e2c5335.tar.gz
use title to feed TOC not name
-rwxr-xr-xbin/ImANerdRules.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ImANerdRules.rb b/bin/ImANerdRules.rb
index 5d74d04..d3def30 100755
--- a/bin/ImANerdRules.rb
+++ b/bin/ImANerdRules.rb
@@ -99,7 +99,7 @@ module ImANerdRules
end
def toc
return '' if @lvl == 0
- "#{' ' * @lvl} #{'*' * (@lvl > 0 ? 1 : 0)} #{lvl} [#{@name}](#{href})\n"
+ "#{' ' * @lvl} #{'*' * (@lvl > 0 ? 1 : 0)} #{lvl} [#{@title}](#{href})\n"
end
end