-
Notifications
You must be signed in to change notification settings - Fork 118
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
MarkdownRenderer should emit extra newline after list #211
Comments
There are actually quite a few places where newlines are deleted, changing the formatting (sticking paragraphs together and such). |
I don't think so, I'm on Linux and running |
I'm sorry, looking at it again and I am actually able to reproduce. And it looks like you are experiencing #56 then. :) I.e. change your code to the following and the from mistletoe import Document
from mistletoe.markdown_renderer import MarkdownRenderer
with MarkdownRenderer() as r:
with open('test.md', 'r') as f:
d = Document(f)
with open('test.md', 'w') as f:
f.write(r.render(d)) So I'm closing this as answered. Feel free to reopen by commenting on this issue. |
Using latest version 1.2.1. Here's a simple round-trip python script:
If I run this script on this markdown file:
it will output:
if I run it again on this output, it will produce:
So the text has become part of the final list item, changing the document layout. The same behavior is also exhibited with ordered lists.
The text was updated successfully, but these errors were encountered: