mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
- 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.
48 lines
601 B
Markdown
48 lines
601 B
Markdown
```
|
|
% 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
|
|
```
|