Fix link formatting in rich viewer
When changing the viewer to use the text-style crate, we mistakenly changed the format for links in the rich viewer from underline to bold. This patch fixes that mistake.
This commit is contained in:
parent
ae1e7ebddf
commit
bf47310f51
@ -94,7 +94,7 @@ fn style_rich_string(ts: &utils::RichString) -> text_style::StyledStr<'_> {
|
||||
for annotation in &ts.tag {
|
||||
match annotation {
|
||||
RichAnnotation::Default => {}
|
||||
RichAnnotation::Link(_) => s.style_mut().set_bold(true),
|
||||
RichAnnotation::Link(_) => s.style_mut().set_underline(true),
|
||||
RichAnnotation::Image => {}
|
||||
RichAnnotation::Emphasis => s.style_mut().set_italic(true),
|
||||
RichAnnotation::Strikeout => {}
|
||||
|
Loading…
Reference in New Issue
Block a user