[kramdown-users] Creating ToC outside the document

Thomas Leitner t_leitner at gmx.at
Tue Oct 16 13:58:55 UTC 2012

On 2012-10-16 14:07 +0530 Sandeep Laxman wrote:
> Thanks Thomas. I do have question though. As I understand it, the toc
> is a tree. Is there a kramdown api call that I can use to convert the
> toc to html code (separately outside the document) or will i need to
> write a custom logic simliar to
> http://kramdown.rubyforge.org/rdoc/Kramdown/Converter/Html.html#method-i-generate_toc_tree

Yes, the result of the toc converter is a tree consisting of
custom :toc elements.

You will need to write a custom logic, for now.

-- Thomas

More information about the kramdown-users mailing list