fix handling of hardbreak (#2058)

This commit is contained in:
Jeff Epler 2023-03-14 13:40:30 -05:00
parent 198190117d
commit aeb44d3e01
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -639,7 +639,9 @@ class Markdown(Widget):
for child in token.children:
if child.type == "text":
content.append(child.content, style_stack[-1])
if child.type == "softbreak":
elif child.type == "hardbreak":
content.append("\n")
elif child.type == "softbreak":
content.append(" ")
elif child.type == "code_inline":
content.append(