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

Whitespace after a list wraps all elements #1934

Closed
jackw opened this issue Feb 9, 2021 · 2 comments · Fixed by #1936
Closed

Whitespace after a list wraps all elements #1934

jackw opened this issue Feb 9, 2021 · 2 comments · Fixed by #1936
Labels
category: lists L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue released

Comments

@jackw
Copy link

jackw commented Feb 9, 2021

Marked version: >= 1.2.8

Describe the bug
If whitespace is introduced on a new line after a list it causes any markdown following it to be wrapped in li tags. I believe this is a regression introduced by #1889. Enabling pedantic appears to fix the issue but isn't considered a workaround as it disables github flavoured markdown.

To Reproduce
Steps to reproduce the behavior:
Create some markdown containing a list then a new line with whitespace followed by a new line and a heading.

  1. Marked Demo
  2. CommonMark Demo

Expected behavior
The list should not wrap all the following elements.

@UziTech UziTech added category: lists L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue labels Feb 9, 2021
@github-actions
Copy link

🎉 This issue has been resolved in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jackw
Copy link
Author

jackw commented Mar 1, 2021

Thanks so much for sorting this quickly @UziTech! 🥇

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 released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants