Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixing unordered lists with ordered lists #1308

Closed
gonzae opened this issue Jul 13, 2018 · 7 comments
Closed

Mixing unordered lists with ordered lists #1308

gonzae opened this issue Jul 13, 2018 · 7 comments
Labels
category: lists L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue

Comments

@gonzae
Copy link

gonzae commented Jul 13, 2018

Describe the bug
When I write an unordered list and right after an ordered list, both lists get merged. Not expected behavior.

To Reproduce
Steps to reproduce the behavior:

Write these example lists:

* bullet
* bullet
1. one
2. two
3. three

You get this output:

<ul>
<li>bullet</li>
<li>bullet</li>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
  1. Marked Demo
  2. CommonMark Demo

Expected behavior
I would expect to have both lists, an unordered list and right after, an ordered list.

@UziTech UziTech added L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue category: lists labels Jul 13, 2018
@Martii
Copy link
Contributor

Martii commented Jul 13, 2018

If you think that is fun... check these out. Ran into this yesterday with double spacing which I didn't even know existed... or does it really?

GFM demo:

* bullet
* bullet
* bullet

* bullet
  • bullet

  • bullet

  • bullet

  • bullet

Marked Demo
CommonMark Demo

@UziTech
Copy link
Member

UziTech commented Jul 13, 2018

@Martii that is fixed in #1304

@Martii
Copy link
Contributor

Martii commented Jul 13, 2018

@UziTech
Had a suggestion... is it possible on the Marked Demo site to have use current HEAD option as well or is that too much? e.g. the equivalent of "nightly"... just to compare?

@UziTech
Copy link
Member

UziTech commented Jul 13, 2018

I have a branch that will allow you to pick the version, but I haven't had time to work on it.

@styfle styfle mentioned this issue Jul 14, 2018
6 tasks
@notslang
Copy link

Babelmark demo: https://johnmacfarlane.net/babelmark2/?normalize=1&text=*+bullet%0A*+bullet%0A1.+one%0A2.+two%0A3.+three

Looks like this is a pretty common issue across implementations.

@styfle
Copy link
Member

styfle commented Aug 17, 2018

The original issue from @gonzae is not resolved in 0.5.0 but the issue from @Martii is resolved in 0.5.0

As @slang800 pointed out with the babelmark demo, we are currently compatible with the original markdown.pl so the output is correct when the option pedantic: true but we should follow CommonMark when pedantic: false.

@UziTech
Copy link
Member

UziTech commented Mar 11, 2019

looks like this was fixed in v0.6.0

@UziTech UziTech closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: lists L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue
Projects
None yet
Development

No branches or pull requests

5 participants