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

Blocks inside lists aren't rendered correctly

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.5.3
    • markdown/1.2
    • None
    • Unknown

    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

            Unassigned Unassigned
            bkummel Bart Kummel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: