Compare commits

...

1 commit

Author SHA1 Message Date
aeb44d3e01
fix handling of hardbreak (#2058) 2023-03-14 13:40:30 -05:00

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(