This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8fa14b82-568c-4d3b-a567-1e77c706d001 XWIKI-23725 Open

Inline wiki macro content is rendered standalone when the wiki macro is standalone

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2857dcc1-a47e-4e03-9ade-5c5a94dde884 Michael Hamann created this issue on 18/Nov/25 09:54
 
Summary: Inline wiki macro content is rendered standalone when the wiki macro is standalone
Issue Type: cid:jira-generated-image-avatar-8fa14b82-568c-4d3b-a567-1e77c706d001 Bug
Affects Versions: 16.10.6, 17.2.0
Assignee: Unassigned
Components: Rendering - WikiMacro
Created: 18/Nov/25 09:54
Labels: regression
Priority: cid:jira-generated-image-static-blocker-1d01a236-8abc-4258-a0ae-ba2033c93112 Blocker
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Import the attached XAR. It contains a wiki macro that uses the wikimacrocontent macro in an inline context even when the macro is standalone.
  2. Open the imported page.

Expected result:

In the first example, the version marker and the content is on the same line.

Actual result:

The version marker and the content are on different lines, the produced HTML is invalid.

A bit of debugging reveals that createXDOM is called with inline set to true but the content of the wiki macro has been prepared in standalone mode as the wiki macro itself is used standalone.

I think it is a problem that the macro content parser ignores the inline flag when the content has been prepared. This could possibly also affect other macros that use the content parser directly.

 
 

3 updates

 
cid:jira-generated-image-avatar-2857dcc1-a47e-4e03-9ade-5c5a94dde884 Changes by Michael Hamann on 18/Nov/25 09:55
 
Fix Version: 17.10.0
Fix Version: 16.10.15
Fix Version: 17.4.8