Files
John MacFarlane 8ce63ffe28 Mardkown writer: fix spacing issues with definition lists.
- Properly handle the case where the first item is an indented
  code block.  (Closes #11542.)
- Use correct indentation when `four_space_rule` extension is
  disabled.
2026-03-20 11:39:01 +01:00

601 B

% pandoc -f native -t markdown
[ DefinitionList
    [ ( [ Str "Input" ]
      , [ [ CodeBlock ( "" , [] , [] ) "Term\n\n  : Def" ] ]
      )
    ]
]
^D
Input

:     Term

        : Def
% pandoc -f markdown -t native
Input

:     Term

        : Def
^D
[ DefinitionList
    [ ( [ Str "Input" ]
      , [ [ CodeBlock ( "" , [] , [] ) "Term\n\n  : Def" ] ]
      )
    ]
]
% pandoc -f native -t markdown+four_space_rule
[ DefinitionList
    [ ( [ Str "Input" ]
      , [ [ CodeBlock ( "" , [] , [] ) "Term\n\n  : Def" ] ]
      )
    ]
]
^D
Input

:       Term

          : Def