diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs index 1a90eaadd..85fdf6a61 100644 --- a/crates/typst-library/src/math/fragment.rs +++ b/crates/typst-library/src/math/fragment.rs @@ -216,6 +216,7 @@ impl GlyphFragment { pub fn with_id(ctx: &MathContext, c: char, id: GlyphId, span: Span) -> Self { let class = match c { ':' => Some(MathClass::Relation), + '⋯' | '⋱' | '⋰' | '⋮' => Some(MathClass::Normal), _ => unicode_math_class::class(c), }; let mut fragment = Self { diff --git a/tests/ref/math/spacing.png b/tests/ref/math/spacing.png index abcfae805..5e717effc 100644 Binary files a/tests/ref/math/spacing.png and b/tests/ref/math/spacing.png differ diff --git a/tests/typ/math/spacing.typ b/tests/typ/math/spacing.typ index b763fb2da..132477f7f 100644 --- a/tests/typ/math/spacing.typ +++ b/tests/typ/math/spacing.typ @@ -11,7 +11,8 @@ $a not b$ \ $a+b, a*b$ \ $sum x, sum(x)$ \ $sum product x$ \ -$f(x), zeta(x), "frac"(x)$ +$f(x), zeta(x), "frac"(x)$ \ +$a+dots.c+b$ --- // Test ignored vs non-ignored spaces.