Hello @jsx97,
this is a bit tricky, but enum
is defined as enum(..children)
, where the ..
is very important. It is a variadic argument, meaning it can be accepted multiple times. The simpler syntax is
#enum(numbering: "a)")[foo][bar]
which is equivalent to
#enum(numbering: "a)", "foo", "bar")
By writing your first example, you actually write the following
#enum(numbering: "a)", enum[foo][bar])