-
-
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
Nested HTML <ul>
outputs an empty line after each markdown bullet
#9161
Comments
Shouldn't the ul there be embedded in a li if you want a nested list? |
Anyway, the real question is why this is being treated as a "loose" list (with spaces between lines) rather than a "tight" one. |
Turns out the command test for #8150 has almost the same test case. |
Good point but I didn't write the HTML from scratch. I copied/pasted it from SeaMonkey HTML composer, which is a GUI app. So yes, it is invalid HTML but it is also used in practice. SeaMonkey outputs an HTML 4.01 transitional doctype. Thank you for the speedy fix! and for #8150; together they enable SeaMonkey composer output.
I don't know about "spaces between lines". Honestly all I can recall is the commonmark definition of a loose list, quote: "... The difference in HTML output is that paragraphs in a loose list are wrapped in |
pandoc 3.1.9, Linux - thank you for today's new release.
Below, the first
<ul>
list is good when converted to markdown but the second one has issues: to my surprise, an empty line is appended after each markdown list item.If this isn't a bug as I think, what is the reason for appending an empty line after each bullet item of the second markdown list?
I would expect that a single html list produced a single markdown list instead of three. In turn, markdown viewers display an empty line after each bullet, which is a problem.
stdin (html):
stdout (markdown):
native:
The text was updated successfully, but these errors were encountered: