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> {
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),
items: args
.all()?

View File

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

View File

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