Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26433

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: