Fix bug with enums starting at zero
This commit is contained in:
parent
b274155c6d
commit
2db4b603db
@ -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()?
|
||||
|
@ -1,9 +1,7 @@
|
||||
// Test enums.
|
||||
|
||||
---
|
||||
. Embrace
|
||||
. Extend
|
||||
. Extinguish
|
||||
#enum[Embrace][Extend][Extinguish]
|
||||
|
||||
---
|
||||
1. First.
|
||||
|
@ -2,9 +2,7 @@
|
||||
|
||||
---
|
||||
_Shopping list_
|
||||
- Apples
|
||||
- Potatoes
|
||||
- Juice
|
||||
#list[Apples][Potatoes][Juice]
|
||||
|
||||
---
|
||||
Tightly
|
||||
|
Loading…
x
Reference in New Issue
Block a user