Interwiki plugin links in headings produce nested
tags in a TOC.
Heading with WikiWord link
Resulting HTML code:
<a href="#Heading_with_TWiki_Plugins_Inter"> Heading with <a href="http://twiki.org/cgi-bin/view/Plugins.InterwikiPugin" title="'Plugins.InterwikiPugin' on TWiki.org">TWiki:Plugins.InterwikiPugin</a> link</a>
This happens because _TOC is processed during variable expansion, which occurs before the
uses is called. InterwikiPlugin
should use a different handler (commontagsHandler would make more sense).
No, we can't move the processing, the TOC handling is done deliberately late in the rendering stage to catch also dynamically generated content with headings. If we move the processing we will break compatibility. We need a way of escaping interwiki links, such as with leading
The test case here produces OK HTML output (no nested anchors). Looks like this has been fixed?
No, not yet fixed. Look at the link in the TOC.
This is fixed now, svn 12395.