There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2b664bf8-977d-4623-a975-7e08b2fa4601 XWIKI-24059 Open

Inconsistencies between UniAst and Macro AST

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-2af7a135-c044-4ae6-94b6-04c7a377ce98 Marius Dumitru Florea on 24/Feb/26 15:51
 
Note that I hit this issue while testing XWIKI-23349. If I try to edit a page with this content:

{noformat}
{{velocity wiki="true"}}
* red
* green
* blue
{{/velocity}}
{noformat}

I get

{noformat}
Failed to render macro: Reached a theoretically unreachable statement
{noformat}

and the root cause is that lists inside macro output support only inline content, and the server-side UniAst renderer outputs paragraphs inside lists in order to match the UniAst constraint that lists must contain block level content.