documents: emoji shortcodes, inline HTML tags and numbered footnote references draw as Typora draws them

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-13 22:22:51 -04:00
1 parent b3d6cc023e
commit 8d27f9088a
5 files changed
+352 -34

No files matched your search

+12
View File
@@ -149,6 +149,18 @@ impl Draw<'_> {
color: Some(colors.fg_subtle),
..HighlightStyle::default()
},
Style::Underline => HighlightStyle {
underline: Some(UnderlineStyle {
thickness: rule,
color: None,
wavy: false,
}),
..HighlightStyle::default()
},
Style::Mark => HighlightStyle {
background_color: Some(colors.warning_subtle),
..HighlightStyle::default()
},
};
(range.clone(), highlight)
})