Uploaded image for project: 'Markdown Syntax'
  1. Markdown Syntax
  2. MARKDOWN-146

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 8.10.0
    • 8.9.1
    • markdown/1.2
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: