Fix bug with enums starting at zero

This commit is contained in:
Laurenz 2022-04-14 13:23:40 +02:00
parent b274155c6d
commit 2db4b603db
3 changed files with 3 additions and 7 deletions

View File

@ -53,7 +53,7 @@ impl<const L: ListKind> ListNode<L> {
fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> {
Ok(Content::show(Self { Ok(Content::show(Self {
start: args.named("start")?.unwrap_or(0), start: args.named("start")?.unwrap_or(1),
wide: args.named("wide")?.unwrap_or(false), wide: args.named("wide")?.unwrap_or(false),
items: args items: args
.all()? .all()?

View File

@ -1,9 +1,7 @@
// Test enums. // Test enums.
--- ---
. Embrace #enum[Embrace][Extend][Extinguish]
. Extend
. Extinguish
--- ---
1. First. 1. First.

View File

@ -2,9 +2,7 @@
--- ---
_Shopping list_ _Shopping list_
- Apples #list[Apples][Potatoes][Juice]
- Potatoes
- Juice
--- ---
Tightly Tightly