Using the dollar sign ($) character right before a closing tag breaks the rendering of the block text

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 8.20.0, 9.4.0, 9.13.0
    • Component/s: Rich Text Editor
    • 8.2
    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      Jira wiki renderer supports wiki formatting with different tags that can be applied to a block of text, such as code and panel tags.

      When using the dollar sign ($) character together with a closing tag, this breaks rendering of the block text.

      Steps to Reproduce

      1. Install a Jira vanilla instance.
        • This was validated on versions 8.20, 9.4 and 9.13.
      2. Create a sample project with an issue.
      3. Access the sample issue and add a comment through the Text mode with the following text.

        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        Nunc et risus maximus, congue neque non, ultrices massa.

        {code}Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        Nunc et risus maximus, congue neque non, ultrices massa.{code}

        {code}Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        Nunc et risus maximus, congue neque non, ultrices massa.
        ${code}

      4. Add/publish the comment.

      Expected Results

      The text is properly rendered with all code blocks, similar to the below.

      Actual Results

      The second code block isn't redered as expected as the $ character breaks/cancel the closing tag.


      This occurs with other tags used with a block of text, such as quote and panel.


      This seems to occur only with the $ character.

      Workaround

      To make sure the rendering works as expected, always add line breaks between your text and the opening and closing tags as the example below.

      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      Nunc et risus maximus, congue neque non, ultrices massa.

      {code}
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      Nunc et risus maximus, congue neque non, ultrices massa.
      {code}

      {code}
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      Nunc et risus maximus, congue neque non, ultrices massa.
      $
      {code}



        1. screenshot-1.png
          67 kB
          Thiago Masutti
        2. screenshot-2.png
          44 kB
          Thiago Masutti
        3. screenshot-3.png
          54 kB
          Thiago Masutti
        4. screenshot-4.png
          93 kB
          Thiago Masutti
        5. screenshot-5.png
          54 kB
          Thiago Masutti
        6. screenshot-6.png
          46 kB
          Thiago Masutti

              Assignee:
              Unassigned
              Reporter:
              Thiago Masutti (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: