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

Weird list rendering behavior #530

Closed
Jakobud opened this issue Dec 18, 2014 · 3 comments · Fixed by #684
Closed

Weird list rendering behavior #530

Jakobud opened this issue Dec 18, 2014 · 3 comments · Fixed by #684

Comments

@Jakobud
Copy link

Jakobud commented Dec 18, 2014

- test
- test
- test
1. test
2. test
3. test

Renders as this:

screenshot 40

- test
- test
- test

1. test
2. test
3. test

Renders as

screenshot 41

And this:

- test
- test
- test


1. test
2. test
3. test

Renders correctly:

screenshot 42

Why the weird behavior? Is this normal? Why is 2 spaces required after a list before starting another list? I haven't seen that any in sort of spec for how markdown works. Am I missing something here?

@mattLummus
Copy link

Having the same issue. This doesn't happen when rendering multiple ul or ol elements though - only when you mix types.

@mik01aj
Copy link

mik01aj commented Nov 10, 2015

One more example from me:

image

kohler added a commit to kohler/marked that referenced this issue Nov 16, 2015
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
kohler added a commit to kohler/marked that referenced this issue Nov 16, 2015
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
kohler added a commit to kohler/marked that referenced this issue Dec 15, 2017
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
@joshbruce
Copy link
Member

#982

kohler added a commit to kohler/marked that referenced this issue Dec 6, 2018
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
kohler added a commit to kohler/marked that referenced this issue Dec 10, 2018
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
kohler added a commit to kohler/marked that referenced this issue Dec 10, 2018
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
@styfle styfle reopened this Dec 10, 2018
zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this issue Nov 8, 2021
An ordered list followed by an unordered list shouldn't be combined,
even in non-smartLists mode.

Should fix markedjs#530.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants