[kramdown-users] TOC

Shawn Van Ittersum svicalifornia at gmail.com
Wed May 5 03:49:00 EDT 2010

So it will be necessary to supply an empty list to be replaced?


Or will {:toc} stand on its own?


On Wed, 5 May 2010 09:29:59 +0200, Thomas Leitner wrote:
> On Wed, 5 May 2010 15:48:45 +1000
> Shawn Van Ittersum <svicalifornia at gmail.com> wrote:
>> I'm confused about what this means.
>> 1. If I put {:toc} in a kramdown document, will it be replaced
>> (in-place) by an ordered or unordered hierarchical list of links to
>> section headings in the document? 2. How do I specify whether the
>> list should be ordered or unordered?
> It will be replaced by a simple unordered list, ie. the list where the
> "{:toc}" was placed will be replaced with an unordered list containing
> the table of contents. There is currently no way to modify the way the
> toc is generated from the document itself but you can just subclass the
> HTML converter and modify the method where the toc is generated.
> -- Thomas
> _______________________________________________
> kramdown-users mailing list
> kramdown-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/kramdown-users

More information about the kramdown-users mailing list