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:
parent
11b6ce46e2
commit
c58b6903b8
1 changed files with 0 additions and 1 deletions
|
@ -1048,7 +1048,6 @@ impl Element for MarkdownElement {
|
||||||
copy_button: true, ..
|
copy_button: true, ..
|
||||||
} = &self.code_block_renderer
|
} = &self.code_block_renderer
|
||||||
{
|
{
|
||||||
builder.flush_text();
|
|
||||||
builder.modify_current_div(|el| {
|
builder.modify_current_div(|el| {
|
||||||
let content_range = parser::extract_code_block_content_range(
|
let content_range = parser::extract_code_block_content_range(
|
||||||
parsed_markdown.source()[range.clone()].trim(),
|
parsed_markdown.source()[range.clone()].trim(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue