This issue has been created
There are 2 updates.
 
 
Markdown Syntax / cid:jira-generated-image-avatar-903c64b8-f4bf-48f5-8efe-1e800437ef31 MARKDOWN-95 Open

HTML macro attributes are corrupted when rendering to CommonMark Markdown 1.2

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e9ba159f-917b-4cf7-a543-5908c8801d1f Vincent Massol created this issue on 30/Oct/26 18:52
 
Summary: HTML macro attributes are corrupted when rendering to CommonMark Markdown 1.2
Issue Type: cid:jira-generated-image-avatar-903c64b8-f4bf-48f5-8efe-1e800437ef31 Bug
Affects Versions: 8.9.1
Assignee: Unassigned
Components: markdown/1.2
Created: 30/Oct/26 18:52
Priority: cid:jira-generated-image-static-major-257fee15-020b-4519-b0b5-be23923013a8 Major
Reporter: Vincent Massol
Description:

When rendering an HTML macro to markdown/1.2, the Markdown escaping is applied to the whole HTML content, including tag attributes. Since Markdown doesn't process backslash escapes inside HTML tags, the attribute values are modified.

Steps to reproduce

Render the following xwiki/2.1 content to markdown/1.2:

{{html}}<a href="x_y">a*b</a>{{/html}}

Result

<a href="x\_y">a\*b</a>

The link now points to x_y instead of x_y.

Expected

The HTML tags (and their attributes) are output verbatim; only the text content is escaped where needed.

 
 

2 updates

 
cid:jira-generated-image-avatar-e9ba159f-917b-4cf7-a543-5908c8801d1f Changes by Vincent Massol on 30/Oct/26 18:52
 
Fix Version: 8.10.0
Assignee: Vincent Massol