On Fri, Jan 14, 2005 at 02:46:44PM +1300, Nick Phillips wrote:
> I've pulled what appear to be the relevant parts out of the wayback
> machine and linked them from the TableOfContentsPlugin page on
> kwiki.org.
Hmm...
I was looking at the code but I don't quite get it (since it's
CGI::Kwiki-based and I've never actually seen the code for that).
Just to get an idea of how one would go about doing this with Kwiki
0.30, let's start with the input format:
{toc:}
= Heading
text
== [Some text] Subheading
text
The WaflPhrase is easy. Parsing the headings requires subclassing
Kwiki::Formatter::Heading.
What I'm not sure about is how to get the Kwiki::Formatter::Heading
talking to Kwiki::TableOfContents (the wafl handling code). Just store
it in the hub or something like that?
Marcelo