Anchors can have Heading formats and are included in the TOC Macro

XMLWordPrintable

      Anchor macros can have the heading format, which will show up in the TOC macro (if it is the only object on the line, you get a blank line in your TOC list). If you then attempt to link to that anchor from another page, the anchor link will take you to the anchor's location in the TOC list instead of the anchor's location on the page.

      Here are the following steps on how to reproduce this bug:

      1. Create a page in any space
      2. Put in several Headings from h1. to h6.
      3. Put an Anchor macro somewhere on that same page and format it under any Headings from h1. to h6, or add the Anchor macro to one of the existing heading lines.
      4. Create a link pointing to that anchor
      5. Add the Table of Contents (TOC) macro on the top of the page
      6. Save the page
      7. The anchor link will appear as part of the TOC macro and break linking to the anchor later in the page.

        1. headings.png
          17 kB
          Adam Laskowski
        2. formatting.png
          61 kB
          Adam Laskowski

            Assignee:
            Unassigned
            Reporter:
            JoachimA
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: