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

Code block located after a list ends up in the list when rendering to CommonMark Markdown 1.2

    XMLWordPrintable

Details

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

    Description

      When rendering to markdown/1.2, a code macro without language located right after a list is rendered as an indented code block. Once parsed back, the indented code block is considered as a continuation of the last list item (it becomes a paragraph in that item).

      Steps to reproduce

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

      * a
      
      {{code}}x{{/code}}
      

      Result

      * a
      
          x
      

      which is parsed back as a list item containing a and x.

      Expected

      The code block stays a top-level code block.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: