This issue has been created
 
 
XWiki Rendering / cid:jira-generated-image-avatar-cdbeacd0-d700-4c17-aee1-86f04930c688 XRENDERING-817 Open

Closing macro syntax in verbatim content can close surrounding macro

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fba23731-95d4-4cec-9b45-8cc2b49945ab Michael Hamann created this issue on 10/Sep/26 10:28
 
Summary: Closing macro syntax in verbatim content can close surrounding macro
Issue Type: cid:jira-generated-image-avatar-cdbeacd0-d700-4c17-aee1-86f04930c688 Bug
Affects Versions: 16.10.0
Assignee: Unassigned
Attachments: image-2026-09-10-10-19-31-322.png, image-2026-09-10-10-24-14-260.png
Components: Syntax - xwiki/2.0, Syntax - xwiki/2.1
Created: 10/Sep/26 10:28
Priority: cid:jira-generated-image-static-major-14dfa28b-851f-4761-bd25-b97b99a14774 Major
Reporter: Michael Hamann
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.

45385_image-2026-09-10-10-24-14-260.png

Actual result:

The output is completely broken:

45386_image-2026-09-10-10-19-31-322.png

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.