When using the mediawiki markup, how do I create mediawiki style table of contents? That is, I'm using what I know to work in mediawiki, but PEAR wiki doesn't seem to generate the table of contents. Thanks for any tips.

Comments

ghoti’s picture

Try using [[toc]].

js1’s picture

Thanks for the tip. That sort of works. The headings are listed at the top under a "Table of Contents" heading. But, it's not enumerated, nor are the different heading levels indented.

BTW, I did a CVS update on 2007-06-07.

ghoti’s picture

From what I see in PEAR's Xhtml/Toc.php, I suspect enumeration may not be possible without surgery. I'm having a similar problem with indents, which I've described here: http://drupal.org/node/150067 . That one has me stymied.

FWIW, if I can figure out where my indents are going, I'll probably know enough to patch Toc.php for enumeration.