There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-fd825046-5983-49e9-b8f4-aae14e3c1d1f XWIKI-21125 Closed

Include and Display macros should generate inline content when used in an inline context

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-d0b9edd6-19d9-40e3-b788-4963b7f97bba Michael Hamann on 25/Oct/24 11:43
 

ParserUtils#convertToInline() caused regressions as it made macros inline that don't support inline mode in AllDocs. The problem there is that the include macro is used in an HTML macro where it is contained in non-inline HTML but still treated as inline macro. I've changed the implementation to really just remove the top-level paragraph if there is a single paragraph as this covers the main use case of including inline content. Otherwise, this change seems too dangerous to be backported to LTS branches.