diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-22 14:27:38 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-05-22 14:27:38 +0200 |
commit | 0bc619ea8d4c50b5318f3922ab58894b6e2c5335 (patch) | |
tree | 27ecef83e96247b258c37b85e1a1eaf0a60847b4 /bin/ImANerdRules.rb | |
parent | ae5f16c5e140e5ae144d4df144f8f866d80f9152 (diff) | |
download | rules-vault-0bc619ea8d4c50b5318f3922ab58894b6e2c5335.zip rules-vault-0bc619ea8d4c50b5318f3922ab58894b6e2c5335.tar.gz |
use title to feed TOC not name
Diffstat (limited to 'bin/ImANerdRules.rb')
-rwxr-xr-x | bin/ImANerdRules.rb | 2 |
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 |