marked
marked copied to clipboard
Test case gfm_code_hr_list is inconsistent
Describe the bug
test/new/gfm_code_hr_list.md contains a test case for nested lists/blockquotes/code blocks.
I'm going to focus only on the first part of the test, for now.
1. bar:
> - one
- two
- three
- four
- five
Its rendering vary wildly among implementations:
- marked latest
- commonmark latest
- others - babelmark2 -- likely outdated
- others - babelmark3
I came across this because I was reorganizing the different standard (commonmark) - gfm - pedantic grammars, and this test easily fails whenever the paragraph rule gets changed.
What are we gonna do about this? Should we keep it there to be backward compatible? It clearly goes against commonmark. Should we drop it? Modify it to adhere to commonmark?
Nice find! Nested lists like this are always a pain.
I would vote for adhering to commonmark. We have been introducing lots of breaking changes in the last few months to comply with commonmar. If the standard specifies this behavior, we should follow it 👍
/cc @UziTech @joshbruce
This is fixed in the latest release