marked icon indicating copy to clipboard operation
marked copied to clipboard

Test case gfm_code_hr_list is inconsistent

Open Feder1co5oave opened this issue 6 years ago • 1 comments

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:

  1. marked latest
  2. commonmark latest
  3. others - babelmark2 -- likely outdated
  4. 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?

Feder1co5oave avatar Dec 08 '18 17:12 Feder1co5oave

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

styfle avatar Dec 09 '18 23:12 styfle

This is fixed in the latest release

UziTech avatar Nov 21 '22 06:11 UziTech