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

The next statement calls `modify_current_div` which immediately does
`flush_text`.

Release Notes:

- N/A
This commit is contained in:
Michael Sloan
2025-05-09 12:35:06 +00:00
committed by GitHub
parent 11b6ce46e2
commit c58b6903b8
-1
View File
@@ -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(),