fix handling of hardbreak (#2058)
This commit is contained in:
parent
198190117d
commit
aeb44d3e01
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue