From a5c88c19b300c64fafd6a19e3f5f2fe6422a7b67 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 27 Mar 2023 11:58:17 +0200 Subject: Fix enum parsing and allow zero in numberings Fixes #353. --- src/eval/library.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eval/library.rs') diff --git a/src/eval/library.rs b/src/eval/library.rs index 85d5647b..5b0ff8e6 100644 --- a/src/eval/library.rs +++ b/src/eval/library.rs @@ -74,7 +74,7 @@ pub struct LangItems { /// An item in a bullet list: `- ...`. pub list_item: fn(body: Content) -> Content, /// An item in an enumeration (numbered list): `+ ...` or `1. ...`. - pub enum_item: fn(number: Option, body: Content) -> Content, + pub enum_item: fn(number: Option, body: Content) -> Content, /// An item in a term list: `/ Term: Details`. pub term_item: fn(term: Content, description: Content) -> Content, /// A mathematical equation: `$x$`, `$ x^2 $`. -- cgit v1.2.3