-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Blackfriday adds extra blank line in code block within a list #228
Comments
Are you using |
I'm using Hugo, and I get the same result with For what it's worth, the canonical Gruber Perl markdown program has the same bug. |
I can reproduce.
That's helpful to know, thanks. Interestingly, it also happens if using fenced code block:
|
Another test case:
That produces the same output as above, which is incorrect. |
I think I have a fix. I'll test it a bit more and post later today. |
Instead of swallowing an empty line and then reintroducing it back again in certain cases, collect the list item body in an unaltered form and let the recursive parsing call sort things out. Fixes issue #228.
Fixed via #229. |
Input:
Expected output:
Actual output:
Notice the extra blank line between “bar” and “qux.”
The text was updated successfully, but these errors were encountered: