[kramdown-users] TOC

Thomas Leitner t_leitner at gmx.at
Tue May 4 14:15:58 EDT 2010


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


More information about the kramdown-users mailing list