Expand the checkmark symbol in text

This commit is contained in:
gloamxun committed 2026-10-26 20:33:49 +08:00
1 parent 8e884e6db1
commit f6a41c9f59
3 files changed
+10 -2

No files matched your search

+8
View File
@@ -7790,6 +7790,7 @@ fn text_symbol(rest: &str) -> Option<(&'static str, usize)> {
("\\textdaggerdbl", "\u{2021}"),
("\\dag", "\u{2020}"),
("\\ddag", "\u{2021}"),
("\\checkmark", "\u{2713}"),
("\\textbackslash", "\\"),
("\\textasciitilde", "~"),
("\\textasciicircum", "^"),
@@ -14025,6 +14026,13 @@ A definition.
assert!(b - a > 1_200_000, "gap {}", b - a);
}
#[test]
fn checkmark_expands_in_text() {
let preview = preview_json("Done \\checkmark").expect("preview");
assert!(!preview.contains("checkmark"));
assert!(preview.contains("\"warnings\":[]"), "warnings: {preview}");
}
#[test]
fn punctuation_symbols_expand() {
let preview =