From: Reini U. <ru...@x-...> - 2004-03-02 18:29:06
|
I fixed now CreateToc to link to the headers and optionally link back to the TOC. I had to pass the preparsed markup through a lot of expand calls to the plugin as $dbi->_markup (hack alert), but I didn't have to change any user-dependent argument numbers and now we are able to see the markup as XmlElement tree and even change it. The nesting is not implemented yet and the DHTML expand/collapse also not. And the worst: I couldn't find the problem in the section extracter, with the hairy regex yet. Maybe we have to get rid of the regex and use the new preparsed tree to get at the section borders. It's already parsed anyway. Micki Kaufman schrieb: > More CreateToc feedback: > > 1. the toc should indent to represent the heading depth. I know it's > annoying, because level 3 headings (!!!) would get no indent, level 2 > headings (!!) would get one indent, and level 1 headings (!) would get 2... > > 2. We may want to allow folks to have the output as a bulleted or > non-bulleted list. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |