mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
Markdown writer: Fix ordered list bug.
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.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
```
|
||||
% pandoc -f native -t commonmark | pandoc -f commonmark -t native
|
||||
[ OrderedList
|
||||
( 1 , Decimal , Period )
|
||||
[ [ CodeBlock ( "" , [] , [] ) "hi" ] ]
|
||||
]
|
||||
^D
|
||||
[ OrderedList
|
||||
( 1 , Decimal , Period )
|
||||
[ [ CodeBlock ( "" , [] , [] ) "hi" ] ]
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user