Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

markdown preview: Insert missing line break on hard break (#9687)

Bennet Bo Fenner6d7873797352
diff --git a/crates/markdown_preview/src/markdown_parser.rs b/crates/markdown_preview/src/markdown_parser.rs
index 474cc0ac0fe..1a950f5425c 100644
--- a/crates/markdown_preview/src/markdown_parser.rs
+++ b/crates/markdown_preview/src/markdown_parser.rs
@@ -202,7 +202,7 @@ impl<'a> MarkdownParser<'a> {
}
Event::HardBreak => {
- break;
+ text.push('\n');
}
Event::Text(t) => {