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.

Remove unnecessary use of `MarkdownElementBuilder::flush_text` (#30376)

Michael Sloanc58b6903b8fa
diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs
index 998a180e63b..f9d9c8871c7 100644
--- a/crates/markdown/src/markdown.rs
+++ b/crates/markdown/src/markdown.rs
@@ -1048,7 +1048,6 @@ impl Element for MarkdownElement {
copy_button: true, ..
} = &self.code_block_renderer
{
- builder.flush_text();
builder.modify_current_div(|el| {
let content_range = parser::extract_code_block_content_range(
parsed_markdown.source()[range.clone()].trim(),