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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.0
    • 3.1

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            7b8e7bf4eb9c Jillian Oakley Dressler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: