This issue has been created
There is 1 update.
 
 
Markdown Syntax / cid:jira-generated-image-avatar-a914c26d-d158-4d0f-bb85-3aac40114d81 MARKDOWN-146 Open

Consecutive lists are merged into a single list in CommonMark Markdown 1.2

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-77714f48-606b-4427-91ef-4a5a965fa244 Vincent Massol created this issue on 31/Oct/26 17:45
 
Summary: Consecutive lists are merged into a single list in CommonMark Markdown 1.2
Issue Type: cid:jira-generated-image-avatar-a914c26d-d158-4d0f-bb85-3aac40114d81 Bug
Affects Versions: 8.9.1
Assignee: Unassigned
Components: markdown/1.2
Created: 31/Oct/26 17:45
Priority: cid:jira-generated-image-static-major-b622be8a-6d92-4e70-9c11-49de151da4b9 Major
Reporter: Vincent Massol
Description:

When rendering two consecutive lists to markdown/1.2, they are separated by an empty line but use the same list marker, and CommonMark considers them as a single list (an empty line between list items only makes the list loose). Thus they're read back as a single list.

Example: render the following xhtml/1.0 content to markdown/1.2 and parse the result back:

<ul><li>a</li></ul><ul><li></li></ul>

The result is

* a

* 

which is read back as one list with 2 items instead of 2 lists.

A possible fix is to alternate the list marker (e.g. "*" then "-", or "." then ")" for ordered lists) or to separate the lists with an HTML comment.

 
 

1 update

 
cid:jira-generated-image-avatar-77714f48-606b-4427-91ef-4a5a965fa244 Changes by Vincent Massol on 31/Oct/26 17:45
 
Assignee: Vincent Massol