diff options
| author | Malo <57839069+MDLC01@users.noreply.github.com> | 2025-01-31 11:05:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 10:05:03 +0000 |
| commit | f239b0a6a1e68a016cacf19eeef2df52e4affeb9 (patch) | |
| tree | 101b8aeba40b8c9925d273894cfc27de2a4b5756 /crates/typst-syntax | |
| parent | 46727878da083eb8186373434997f5f7403cbb66 (diff) | |
Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714)
Diffstat (limited to 'crates/typst-syntax')
| -rw-r--r-- | crates/typst-syntax/src/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs index 55d5550b..e187212d 100644 --- a/crates/typst-syntax/src/parser.rs +++ b/crates/typst-syntax/src/parser.rs @@ -3,6 +3,7 @@ use std::mem; use std::ops::{Index, IndexMut, Range}; use ecow::{eco_format, EcoString}; +use typst_utils::default_math_class; use unicode_math_class::MathClass; use crate::set::{syntax_set, SyntaxSet}; @@ -468,7 +469,7 @@ fn math_class(text: &str) -> Option<MathClass> { chars .next() .filter(|_| chars.next().is_none()) - .and_then(unicode_math_class::class) + .and_then(default_math_class) } /// Parse an argument list in math: `(a, b; c, d; size: #50%)`. |
