There is 1 comment.
 
 
Markdown Syntax / cid:jira-generated-image-avatar-fad53239-4a06-4f90-b474-071f6e4f6342 MARKDOWN-127 Open

Paragraph starting with 4 spaces or more in a list item is read as an indented code block in CommonMark Markdown 1.2

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-a214d315-a3b4-4c8b-82e9-e6dd67a34ab1 Vincent Massol on 05/Nov/26 22:01
 

Same cause outside list items: a paragraph starting with spaces is read back as part of the previous block or as a code block:

  • xwiki/2.1
    ; t
    : d
    
        a

    โ†’ a is read back inside the description (as a group).

  • * x followed by an empty line and {{ a}} โ†’ a is read back inside the list item.
  • At the top level, a followed by an empty line and {{ b}} โ†’ b is read back as a code macro.
    Escaping the spaces as   doesn't help (read back as an html macro). Fixing it probably means dropping the leading spaces of a paragraph when rendering (no visible difference in HTML).