We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29490c commit f5b2acfCopy full SHA for f5b2acf
lib/jekyll/converters/markdown.rb
@@ -117,7 +117,12 @@ def convert(content)
117
}).to_html
118
end
119
when 'rdiscount'
120
- RDiscount.new(content, *@rdiscount_extensions).to_html
+ rd = RDiscount.new(content, *@rdiscount_extensions)
121
+ html = rd.to_html
122
+ if rd.generate_toc and html.include? @config['rdiscount']['toc_token']
123
+ html.gsub! @config['rdiscount']['toc_token'], rd.toc_content
124
+ end
125
+ html
126
when 'maruku'
127
Maruku.new(content).to_html
128
0 commit comments