Use of hash characters within Code Block Macro creates hyperlinks: using a slash to escape works but slash remains visible

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 4.0
    • Affects Version/s: 3.1
    • Environment:

      We're using Confluence for technical documentation, and we need to include a code snippet which looks as follows:

       <style> #topDiv img { width: 100%; } </style> 

      using the Code macro, upon save, the hash - # - character disappears and it converts the following word into a hyperlink, thus the snippet becomes

       <style> [#topDiv|https://confluence.opinionlab.com/label/kb/topdiv] img { width: 100%; } </style> 

      we then tried escaping the # with a slash

      This works, but the slash then remains visible:

       <style> \#topDiv img { width: 100%; } </style> 

      what we would like to happen is this:

       <style> #topDiv img { width: 100%; } </style> 

      which appears to work OK in this JIRA, but not in our Confluence

              Assignee:
              Unassigned
              Reporter:
              Jillian Oakley Dressler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: