-
-
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
Change 'loose'/'tight' list parsing to be more like CommonMark #5285
Comments
Looks good, thanks! |
Actually, on further examination, it appears this bug may not be quite fixed, although it's possible this is an entirely separate issue which should be in a different bug report. It seems that if the final list (unordered or ordered) item contains a blockquote block item (but not merely an indented paragraph/continuation), the entire list gets switched back to the
yields the broken behavior:
However, adding an additional paragraph after the blockquote, or adding an additional list item at all to the end, fixes it:
yields:
Pandoc version:
|
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
Initial discussion on pandoc-discussion.
Pandoc currently parses ordered/unordered lists with block elements in a surprising & inconsistent way, which differs from CommonMark, by not putting paragraph level items into paragraphs except for the final item (leading to subtle rendering problems in HTML). CommonMark puts all paragraph elements in paragraphs.
Simple example:
Possibly related issues:
The text was updated successfully, but these errors were encountered: