diff options
| author | Eric Biedert <github@ericbiedert.de> | 2023-07-10 11:00:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-10 11:00:12 +0200 |
| commit | be0f8fe6d70bc5919e4351b73a2835e89001b000 (patch) | |
| tree | eb7c9ad54fcc1a53171f1e0b9ea67663a64fe596 /crates/typst-library/src/math/mod.rs | |
| parent | 7404f85a02450c291ee408700e7874cb85a06e42 (diff) | |
Customizable math classes (#1681)
Diffstat (limited to 'crates/typst-library/src/math/mod.rs')
| -rw-r--r-- | crates/typst-library/src/math/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst-library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs index f4199fd8..b5410a03 100644 --- a/crates/typst-library/src/math/mod.rs +++ b/crates/typst-library/src/math/mod.rs @@ -6,6 +6,7 @@ mod accent; mod align; mod attach; mod cancel; +mod class; mod delimited; mod frac; mod fragment; @@ -22,6 +23,7 @@ pub use self::accent::*; pub use self::align::*; pub use self::attach::*; pub use self::cancel::*; +pub use self::class::*; pub use self::delimited::*; pub use self::frac::*; pub use self::matrix::*; @@ -106,6 +108,8 @@ pub fn module() -> Module { math.define("script", script_func()); math.define("sscript", sscript_func()); + math.define("class", ClassElem::func()); + // Text operators. math.define("op", OpElem::func()); op::define(&mut math); |
