mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
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> {
|
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()?
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
// Test enums.
|
// Test enums.
|
||||||
|
|
||||||
---
|
---
|
||||||
. Embrace
|
#enum[Embrace][Extend][Extinguish]
|
||||||
. Extend
|
|
||||||
. Extinguish
|
|
||||||
|
|
||||||
---
|
---
|
||||||
1. First.
|
1. First.
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
_Shopping list_
|
_Shopping list_
|
||||||
- Apples
|
#list[Apples][Potatoes][Juice]
|
||||||
- Potatoes
|
|
||||||
- Juice
|
|
||||||
|
|
||||||
---
|
---
|
||||||
Tightly
|
Tightly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user