Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-620

Overridden heading ids are not taken into account by the ToC Macro

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Using the code below, the ToC is expected to generate a list with to links, respectively with ancor somenewid and HHeading2.

      This is not the case and the generated anchors are HHeading1 and HHeading2.

      Consequently, headings with overridden ids cannot be reached from the ToC.

      {{toc/}}
      
      (% id="somenewid" %)
      = Heading1 =
      
      = Heading2 =
      

      Note: the current affect version is the most recent version where the bug is identified, I did not yet search for the oldest impacted version.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: