Anchors for headings wrapped in {color} macros are not correct, breaks Table of Contents {toc} macro

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Low
    • 4.3
    • Affects Version/s: 2.5.1
    • Component/s: None
    • Environment:

      The toc macro cannot generate proper anchored links to headers that use macros. The links will include the page, but no reference to the target header. I also wonder if it's not related in some way to the multi-byte toc bug.

      https://wiki.csuchico.edu/confluence/x/pABi shows how the following markup renders.

       
      {toc} 
      
      h1. Foo 
      
      h2. Baz & Zab 
      
      h3. {color:red}BING!{color} 
      h3. BANG! 
      
      h1. Bar 
      
      h2. Bears
      

            Assignee:
            Matt Ryall
            Reporter:
            Patrick Berry
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: