diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-28 15:35:56 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-28 15:36:32 +0100 |
| commit | 4809e685a231a3ade2c78b75685ee859196c38c1 (patch) | |
| tree | e3141236cca536c31c6ef4a6df6d218c16ba5a94 /library/src/lib.rs | |
| parent | 28c554ec2185a15e22f0408ce485ed4afe035e03 (diff) | |
More capable math calls
Diffstat (limited to 'library/src/lib.rs')
| -rw-r--r-- | library/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs index 17f3de6d..41c621cb 100644 --- a/library/src/lib.rs +++ b/library/src/lib.rs @@ -191,12 +191,11 @@ fn items() -> LangItems { layout::ListItem::Term(basics::TermItem { term, description }).pack() }, formula: |body, block| math::FormulaNode { body, block }.pack(), - math_atom: |atom| math::AtomNode(atom).pack(), math_align_point: || math::AlignPointNode.pack(), - math_delimited: |open, body, close| math::LrNode(open + body + close).pack(), - math_attach: |base, sub, sup| { - math::AttachNode { base, top: sub, bottom: sup }.pack() + math_delimited: |open, body, close| { + math::LrNode { body: open + body + close, size: None }.pack() }, + math_attach: |base, bottom, top| math::AttachNode { base, bottom, top }.pack(), math_accent: |base, accent| math::AccentNode { base, accent }.pack(), math_frac: |num, denom| math::FracNode { num, denom }.pack(), } |
