mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 21:55:44 +00:00
Previously ordered lists starting with a code block did not round trip. Pandoc uses an indented code block, and according to commonmark rules only one space is gobbled after the list marker; however, pandoc added two. This has now been fixed. An incidental change fixes an oddity in markua list indentation. Closes #11762.
13 lines
255 B
Markdown
13 lines
255 B
Markdown
```
|
|
% pandoc -f native -t commonmark | pandoc -f commonmark -t native
|
|
[ OrderedList
|
|
( 1 , Decimal , Period )
|
|
[ [ CodeBlock ( "" , [] , [] ) "hi" ] ]
|
|
]
|
|
^D
|
|
[ OrderedList
|
|
( 1 , Decimal , Period )
|
|
[ [ CodeBlock ( "" , [] , [] ) "hi" ] ]
|
|
]
|
|
```
|