This issue has been created
 
 
Confluence / cid:jira-generated-image-avatar-1396a6db-e36c-45b7-b1a7-b0ab797be609 CONFLUENCE-401 Open

Include macro surrounded by text incorrectly converted to block in div

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a3c7562f-f2c1-44fb-adf3-abf0be7e8ba1 Raphaël Jakse created this issue on 19/Feb/25 08:03
 
Summary: Include macro surrounded by text incorrectly converted to block in div
Issue Type: cid:jira-generated-image-avatar-1396a6db-e36c-45b7-b1a7-b0ab797be609 Bug
Affects Versions: 9.78.0
Assignee: Unassigned
Components: Syntax - XHTML
Created: 19/Feb/25 08:03
Priority: cid:jira-generated-image-static-major-d0903766-7513-4fd8-9e7d-57da24181da9 Major
Reporter: Raphaël Jakse
Description:

In the following Confluence XHTML syntax,

<div>Hello <ac:structured-macro ac:name="include" ac:schema-version="1" ac:macro-id="21107d4e-db11-483a-9378-cc1981c10d27"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="_SvIncludePlusContent-_environment_long 1" /></ac:link></ac:parameter></ac:structured-macro> world</div>

the include macro is incorrectly migrated block, where it should be converted inline. In CONFLUENCE-307, we had fixed the case where the macro is in a paragraph, we know need to figure out a way to detect that things are inline when surrounded by text (before and/or after).