RDiscount :generate_toc with Sinatra
问题 So I have sinatra setup with Rdiscount to render a markdown file with a HAML layout. This all works but I want RDiscount to generate a table of contents based on the headers in my haml file. I've tried setting it in the sinatra configuration. set :markdown, :generate_toc => true but that doesn't seem to work. I've also tried doing it when I render the markdown like so: markdown :PAGENAMEHERE, :layout => :'layouts/PAGENAMEHERE', :generate_toc => true which also doesn't work. Is this even