Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.8 RC1
-
None
-
any
-
toc macro invalid list
-
Unit
-
Description
XWiki 2.0 input:
{{toc start=1/}} = h1 = == h2 ==
XHTML 1.0 output:
<!--startmacro:toc|-|start="1"|-|--> <ul> <li> <!--startwikilink:null#Id1e1952a-e30e-465d-a673-cfbee4bad17c--> <span class="wikilink"> <a href="/xwiki/bin/view/Sandbox/FF#Id1e1952a%2De30e%2D465d%2Da673%2Dcfbee4bad17c">h1</a> </span> <!--stopwikilink--> </li> <ul> <li> <!--startwikilink:null#Ib8dc6bc4-92d4-44c9-81d9-80e640b6cc6e--> <span class="wikilink"> <a href="/xwiki/bin/view/Sandbox/FF#Ib8dc6bc4%2D92d4%2D44c9%2D81d9%2D80e640b6cc6e">h2</a> </span> <!--stopwikilink--> </li> </ul> </ul> <!--stopmacro--> <a name="Id1e1952a-e30e-465d-a673-cfbee4bad17c" id="Id1e1952a-e30e-465d-a673-cfbee4bad17c"/> <h1 id="Hh1"><span>h1</span></h1> <a name="Ib8dc6bc4-92d4-44c9-81d9-80e640b6cc6e" id="Ib8dc6bc4-92d4-44c9-81d9-80e640b6cc6e"/> <h2 id="Hh2"><span>h2</span></h2>
As you can see, the nested list is not placed inside a list item. The reason why toc macro outputs invalid lists is because it "needs" (I don't agree) to handle headers like:
= h1 = === h3 ===
Attachments
Issue Links
- is duplicated by
-
XWIKI-3255 TOC macro has a problem when used inside a textarea object
- Closed