summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/lib.rs
diff options
context:
space:
mode:
authorsitandr <60141933+sitandr@users.noreply.github.com>2023-07-10 13:09:09 +0300
committerGitHub <noreply@github.com>2023-07-10 12:09:09 +0200
commitdfe361ec6a4adfab4140bf480aae3a39b2683165 (patch)
treeb6476dd63047e424d97950eae3414c69c59d9069 /crates/typst-library/src/lib.rs
parentbe0f8fe6d70bc5919e4351b73a2835e89001b000 (diff)
Better primes in math (#1614)
Diffstat (limited to 'crates/typst-library/src/lib.rs')
-rw-r--r--crates/typst-library/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-library/src/lib.rs b/crates/typst-library/src/lib.rs
index 0bd88501..f9b95615 100644
--- a/crates/typst-library/src/lib.rs
+++ b/crates/typst-library/src/lib.rs
@@ -120,6 +120,7 @@ fn items() -> LangItems {
}
elem.pack()
},
+ math_primes: |count| math::PrimesElem::new(count).pack(),
math_accent: |base, accent| {
math::AccentElem::new(base, math::Accent::new(accent)).pack()
},