-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Erroneous paragraphs inserted into list items when specifying two consecutive lists #663
Comments
@joepie91: Does the |
Yes, it seems to behave the same regardless of the |
You should put two empty lines (aka 3 newlines) in between the two blocks to get two separate lists with marked:
Github doesn't use marked, nor a port of it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When specifying the following Markdown (without any non-default options specified for
marked
):... this is the result (beautified, tested via an instance in the browser):
Despite being syntactically valid - two separate lists, delimited by two newlines like any other 'element' in Markdown - strange paragraphs are inserted at the 'intersection' of the two; that is, the last element of the first paragraph, and the first element of the last paragraph.
Options for correct (that is, sensible and expected) behaviour would include:
<ul>
elements, without any paragraphs in the list items.<ul>
element, effectively ignoring the double-newline, without any paragraphs in the list items.GitHub itself appears to be having the same issue, but I'm not sure whether they use
marked
or a port of it (or even just an implementation based on the same rules). I've reported the issue to them separately.The text was updated successfully, but these errors were encountered: