diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-27 11:58:17 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-27 12:12:57 +0200 |
| commit | a5c88c19b300c64fafd6a19e3f5f2fe6422a7b67 (patch) | |
| tree | 42192332e277624a35c6e3db568c0ff8196b582a /src/eval/library.rs | |
| parent | 10d8fd966130f1e60d328b08a7fcce61961d6974 (diff) | |
Fix enum parsing and allow zero in numberings
Fixes #353.
Diffstat (limited to 'src/eval/library.rs')
| -rw-r--r-- | src/eval/library.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<NonZeroUsize>, body: Content) -> Content, + pub enum_item: fn(number: Option<usize>, 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 $`. |
