From 0bc619ea8d4c50b5318f3922ab58894b6e2c5335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2018 14:27:38 +0200 Subject: use title to feed TOC not name --- bin/ImANerdRules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1-2-g2b99