summaryrefslogtreecommitdiff
path: root/library/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
commitba294e2670814243122c9e4f560e0f21a4bec13d (patch)
tree36bdf987dc53729bb4a176713b40e2ca7c08a874 /library/src/lib.rs
parent959df6da3b6e3c5876e9d5627cb2970e32a0a37f (diff)
Split up list type into three separate types and document them
Diffstat (limited to 'library/src/lib.rs')
-rw-r--r--library/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs
index 6b6cae17..26727711 100644
--- a/library/src/lib.rs
+++ b/library/src/lib.rs
@@ -198,10 +198,10 @@ fn items() -> LangItems {
link: |url| meta::LinkNode::from_url(url).pack(),
ref_: |target| meta::RefNode(target).pack(),
heading: |level, body| basics::HeadingNode { level, title: body }.pack(),
- list_item: |body| basics::ListItem::List(Box::new(body)).pack(),
- enum_item: |number, body| basics::ListItem::Enum(number, Box::new(body)).pack(),
- desc_item: |term, body| {
- basics::ListItem::Desc(Box::new(basics::DescItem { term, body })).pack()
+ list_item: |body| layout::ListItem::List(body).pack(),
+ enum_item: |number, body| layout::ListItem::Enum(number, body).pack(),
+ desc_item: |term, description| {
+ layout::ListItem::Desc(basics::DescItem { term, description }).pack()
},
math: |children, block| math::MathNode { children, block }.pack(),
math_atom: |atom| math::AtomNode(atom).pack(),