Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-45342

Can't escape brackets inside {code} blocks

XMLWordPrintable

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Expected Behavior

      Be able to escape "Advanced Formatting" operators inside those operators.

      Example

      This Would be this
       {code} This is {\code\} {code} 
       This is {code} 

      Actual Behavior

      The wiki markup processor ignores escaping, showing text like below.

       This is {\code\} 

      Steps to Reproduce

      1. Enter the below text inside any Wiki Markup-enabled field;
        {code}
        This is \{code\}
        {code}
        
      2. Trigger the preview;

      Workaround

      Use noformat instead of code. Note this won't enable automatic syntax coloring for Java, SQL and other languages.

              Unassigned Unassigned
              edf2323a88df jason_s
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: