-
-
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
[Markdown] Dash-separated long list items rendered as sublist #6497
Comments
For gfm we use libcmark's renderer, which in this respect is less sophisticated than the native pandoc renderers. (Of course I could do something about this, since I'm also the maintainer of libcmark, but it would have to be fixed there: commonmark/cmark on GitHub. You can report this there if you like.) |
Thanks @jgm for the tip. I just reproduced the bug with the standalone |
BTW @jgm, what do you think of @DavidAnson workaround at DavidAnson/markdownlint#302 (comment) of using link references? |
I'll close here, since it's really an upstream issue. |
Fair enough! Thanks @jgm for the feedback! :) |
Here is a Markdown file with a list of very long items:
Which renders into a clean list of four items:
Now I want to clean this file and have pandoc automatically wraps long lines. Here is the CLI I run:
Which renders to:
You can see how the fourth description is rendered as a sub-list because of the dash? I think this is a bug.
What's interesting in this case is that other variants of Markdown seems to account for this edge-case and keep the dash in the previous line to prevent accidental rendering of sublists:
For the record, here is my version of pandoc, straight out of
brew
on macOS Catalina:The text was updated successfully, but these errors were encountered: