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

Blocks inside lists aren't rendered correctly

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.5.3
    • Fix Version/s: None
    • Component/s: Markdown 1.2
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I am using the Markdown module in a script to convert Markdown (from a Github Wiki) to XWiki syntax. Pages that contain lists with blocks inside a list item are not converted correctly.

      E.e.

      1. list item
      2. list item
          ```
          code block inside list item 2
          ```
      3. list item
      

      will result in

      1. list item
      2. list item
      
      code block inside list item 2
      
      1. list item
      

      Two errors here:

      • code block is moved to the top level
      • list counter is reset after the code block

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bkummel Bart Kummel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: