This issue has been created
There are 2 updates.
 
 
Markdown Syntax / cid:jira-generated-image-avatar-580ba999-2f71-450d-a131-538e8148aa61 MARKDOWN-106 Open

Consecutive code blocks are merged when rendering to CommonMark Markdown 1.2

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6d3cb9d1-7e25-489d-a57d-9d065f99048d Vincent Massol created this issue on 30/Oct/26 19:27
 
Summary: Consecutive code blocks are merged when rendering to CommonMark Markdown 1.2
Issue Type: cid:jira-generated-image-avatar-580ba999-2f71-450d-a131-538e8148aa61 Bug
Affects Versions: 8.9.1
Assignee: Unassigned
Components: markdown/1.2
Created: 30/Oct/26 19:27
Priority: cid:jira-generated-image-static-major-772239f3-f181-4570-bbb7-4f4e22ce27b2 Major
Reporter: Vincent Massol
Description:

When rendering to markdown/1.2, two consecutive standalone code macros without a language are rendered as indented code blocks separated by a blank line. Once parsed back, they form a single code block.

Steps to reproduce

Render the following xwiki/2.1 content to markdown/1.2 and parse it back:

{{code}}
a
{{/code}}

{{code}}
b
{{/code}}

Result

A single code macro with content a, an empty line and b.

Expected

Two code macros.

 
 

2 updates

 
cid:jira-generated-image-avatar-6d3cb9d1-7e25-489d-a57d-9d065f99048d Changes by Vincent Massol on 30/Oct/26 19:27
 
Fix Version: 8.10.0
Assignee: Vincent Massol