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.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.