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

Using \[ in Markup macro does not escape as expected

XMLWordPrintable

      Summary

      When using a \ backslash to escape a [ square bracket, the Markup has an incoherent behaviour.

      How to reproduce

      1. Create a new page
      2. Click the + symbol at the toolbar
      3. Select markup
      4. type "\ [content\ ]"

      Expected results

      • The first square bracket is escaped and shown as normal text, without transforming the content between them into a link.

      Actual Results

      • The content in the same line as the \ [ is wrapped in a macro
        If this is inside a table, two more columns will be added and the content will be between those, in other columns

      Workaround

      • Avoid escaping the [ square bracket. Instead, escape only this ] square bracket. Escaping this ] square bracket (\ ]) at the same line, before escaping this [ square bracket (\ [) also avoids this issue
      • Use the ASCII equivalent codes for [ and ] , "&#91" for [ and "&#93" for ].

      This does not happen when typing straight into the text editor.

      Attached screenshots of this behaviour. There is no reference to this under Confluence Wiki Markup

              Unassigned Unassigned
              drodrigues@atlassian.com Diego (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: