[kramdown-users] TOC

Shawn Van Ittersum svicalifornia at gmail.com
Wed May 5 01:48:45 EDT 2010


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?

Shawn

On Tue, 4 May 2010 20:15:58 +0200, Thomas Leitner wrote:
> On Sun, 25 Apr 2010 11:56:47 +0200
> Thomas Leitner <t_leitner at gmx.at> wrote:
> 
>>> Was the {:toc} extension added to kramdown, or is it still on the
>>> to-do list?
>> 
>> It is still on my TODO list. I'm thinking about whether to add this as
>> an extension -- it doesn't not provide a real value regarding parsing,
>> therefore I would rather not have it as an extension -- or by adding a
>> additionaly processor between parsers and converters which works in
>> the same manner as Maruku's implementation of the TOC and the current
>> implementation of syntax highlighting.
> 
> I have implemented ToC generation using Maruku's method, ie. assigning
> the reference name 'toc' to an ordered or unordered list. This is
> purely a feature of the converters, so no change was needed
> parser-wise. Both the HTML and the LaTeX converter have been updated to
> support this.
> 
> -- 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