[kramdown-users] Creating ToC outside the document

Thomas Leitner t_leitner at gmx.at
Mon Oct 15 12:23:34 UTC 2012

On 2012-10-15 17:16 +0530 Sandeep Laxman wrote:
> I started using kramdown just a few days ago. In my application, I
> want to show the ToC of kramdown document on a separate web page
> (where one can click on the link to the appropriate chapter). How can
> I do this?

You can use the [Converter::Toc class][1] to extract the TOC of a
Kramdown document and display it anywhere and in any way you like.

Best regards,

[1]: http://kramdown.rubyforge.org/rdoc/Kramdown/Converter/Toc.html

More information about the kramdown-users mailing list