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

Consecutive code blocks are merged 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, two consecutive standalone code macros without a language are rendered as indented code blocks separated by a blank line. Once parsed back, they form a single code block.

      Steps to reproduce

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

      {{code}}
      a
      {{/code}}
      
      {{code}}
      b
      {{/code}}
      

      Result

      A single code macro with content a, an empty line and b.

      Expected

      Two code macros.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: