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 14:35:06 +02:00 committed by GitHub
parent 11b6ce46e2
commit c58b6903b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(),