Ordered lists starting with non-1 are not parsed when some content is present before them (micromark 3) #77
Labels
💪 phase/solved
Post is done
👶 semver/patch
This is a backwards-compatible fix
🐛 type/bug
This is a problem
Initial checklist
Affected packages and versions
3.0.0 (via
mdast-util-from-markdown
1.0.0)Please let me know if this issue should be moved to
mdast-util-from-markdown
, but I think the bug is somewhere in micromark source :)Link to runnable example
https://codesandbox.io/s/naughty-ptolemy-y62bf?file=/src/index.ts
Steps to reproduce
This is not parsed as list (paragraph before)
This is also not parsed as list (empty line before)
This is parsed as list (when trimmed, start number is correct)
This is also parsed as list (obviously)
Expected behavior
List starting with non-1 numbers are parsed correctly.
Github handles it:
micromark pre-3 also handled it correctly.
Actual behavior
List starting with non-1 numbers are not parsed correctly when some paragraph or even empty line is present before them (in container?) 🤷
Runtime etc.
I do not think it's build / runtime dependent - it's some construct issue - but it happens both in browser & node - windows & linux.
The text was updated successfully, but these errors were encountered: