Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2766

TOC doesn't work with "new" heading syntax (Page Syntax: XWiki 1.0)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.6, 1.6.1
    • None
    • macro toc getTOC syntax heading

    Description

      old heading syntax:
      1 for heading1
      1.1 for heading 2
      1.1.1 for heading 3
      ...
      the toc macro works with this old syntax

      new syntax:
      <h1></h1> for heading 1
      <h2></h2> for heading 2
      ...
      the toc macro doesn't work with this new syntax

      i've tested it with the selection "XWiki 1.0" (yes, 1.0) in the page syntax dropdown box with xwiki 1.6 and 1.6.1.

      seems like the method $tdoc.getTOC only looks for the "old" syntax.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            stefan_woehrer Stefan Woehrer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: