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

Standalone code macro located in a table cell breaks the table 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 standalone code macro located in a table cell (e.g. inside a group in a cell) is rendered as a fenced code block inside the table row. Since Markdown table rows must fit on a single line, the table is broken.

      Steps to reproduce

      Render the following xwiki/2.1 content to markdown/1.2:

      |=a|=b
      |x|(((
      {{code language="java"}}
      int i = 0;
      {{/code}}
      )))
      

      Expected

      A valid table, e.g. with the code rendered as an inline code span in the cell.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: