summaryrefslogtreecommitdiff
path: root/src/model/library.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/library.rs')
-rw-r--r--src/model/library.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/model/library.rs b/src/model/library.rs
index 96218bb1..54eeeb5b 100644
--- a/src/model/library.rs
+++ b/src/model/library.rs
@@ -66,7 +66,10 @@ pub struct LangItems {
/// An item in a term list: `/ Term: Details`.
pub term_item: fn(term: Content, description: Content) -> Content,
/// A mathematical formula: `$x$`, `$ x^2 $`.
- pub math: fn(children: Vec<Content>, block: bool) -> Content,
+ pub math: fn(body: Content, block: bool) -> Content,
+ /// A subsection in a math formula that is surrounded by matched delimiters:
+ /// `[x + y]`.
+ pub math_delimited: fn(body: Content) -> Content,
/// An atom in a formula: `x`, `+`, `12`.
pub math_atom: fn(atom: EcoString) -> Content,
/// A base with optional sub- and superscripts in a formula: `a_1^2`.