markdown: Use parsed text (#24388)
Fixes #15463 Release Notes: - Fixed display of symbols such as ` ` in hover popovers
This commit is contained in:
parent
888a2df3f0
commit
e689c8c01b
4 changed files with 40 additions and 24 deletions
|
@ -598,7 +598,7 @@ async fn parse_blocks(
|
|||
},
|
||||
syntax: cx.theme().syntax().clone(),
|
||||
selection_background_color: { cx.theme().players().local().selection },
|
||||
break_style: Default::default(),
|
||||
|
||||
heading: StyleRefinement::default()
|
||||
.font_weight(FontWeight::BOLD)
|
||||
.text_base()
|
||||
|
@ -885,8 +885,10 @@ mod tests {
|
|||
let slice = data;
|
||||
|
||||
for (range, event) in slice.iter() {
|
||||
if [MarkdownEvent::Text, MarkdownEvent::Code].contains(event) {
|
||||
rendered_text.push_str(&text[range.clone()])
|
||||
match event {
|
||||
MarkdownEvent::Text(parsed) => rendered_text.push_str(parsed),
|
||||
MarkdownEvent::Code => rendered_text.push_str(&text[range.clone()]),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue