Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-817

Closing macro syntax in verbatim content can close surrounding macro

    XMLWordPrintable

Details

    • Unknown

    Description

      Steps to reproduce:

      1. Open the WYSIWYG editor on any page
      2. Insert an information box
      3. Inside the box, change the paragraph format to "Formatted"
      4. Change the formatted text to 
        #{{/info}}
      5. Save the page.

      Expected result:

      The information box is displayed as it was shown in the editor.

      Actual result:

      The output is completely broken:

      While related to XRENDERING-686, this is slightly different: the issue here is not that the content would need escaping inside the verbatim syntax, the issue here is that the content inside the verbatim syntax affects the outer macro because the scan for the closing macro syntax doesn't take the verbatim syntax into account. This is similar to XRENDERING-815 except that XRENDERING-686 means that this can't be fixed by simply adding escaping for the macro syntax and this is also never a parse-render round-trip issue: there is no XWiki syntax that results in the XDOM that exposes this problem.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: