From c58b6903b8fa2a71d8a46b51c099a8c1ab74ff59 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Fri, 9 May 2025 14:35:06 +0200 Subject: [PATCH] Remove unnecessary use of `MarkdownElementBuilder::flush_text` (#30376) The next statement calls `modify_current_div` which immediately does `flush_text`. Release Notes: - N/A --- crates/markdown/src/markdown.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index 998a180e63..f9d9c8871c 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(),