diff options
| author | damaxwell <damaxwell@alaska.edu> | 2023-08-05 02:02:38 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-05 12:02:38 +0200 |
| commit | ba0990f189ec7120d8be949c081998d721bbe5e6 (patch) | |
| tree | 57c2343f7b6b8a3e094dba65c2e018ee53ab35a6 /crates | |
| parent | ad55755f33d2e5a386717e3af2f7b1a52db6ad87 (diff) | |
Period and slash are ordinary characters in math (#1855)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-library/src/math/fragment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs index 8baea913..8e051074 100644 --- a/crates/typst-library/src/math/fragment.rs +++ b/crates/typst-library/src/math/fragment.rs @@ -216,7 +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), + '.' | '/' | '⋯' | '⋱' | '⋰' | '⋮' => Some(MathClass::Normal), _ => unicode_math_class::class(c), }; let mut fragment = Self { |
