[pmwiki-users] Re : PageTableOfContents broken

Forgeot Eric eforgeot at yahoo.fr
Thu Sep 29 16:45:12 CDT 2011


Hello


>As the original co-author (along with Christian Ridderstrom) of pagetoc,
>I'm aware that it's a bit of a neglected child. There have also been some
>recent efforts to rectify its shortcomings. Is it still fit for purpose,
>or does it need an overhaul and general update?

I can't really tell. I'm using pagetoc with a specific cookbook, txt2tags: http://www.pmwiki.org/wiki/Cookbook/Txt2tags

I had no problem with it until I decided to change:

Markup ('txt2tags_h2','<txt2tags_h1'    , '/( *)==[^=](.*?)[^=]==/', "!!$2");
to 
Markup ('txt2tags_h2','<txt2tags_h1'    , '/^( *)==[^=](.*?)[^=]==/', "!!$2");

So I removed the faulty syntax.

I couldn't use the fixed version, even with the first version. I haven't tried it on a normal pmwiki setting. 
It could be cool to get 4 levels of TOC, though.



More information about the pmwiki-users mailing list