Numbered List
Documentation for the `enum` function.
A numbered list.
Displays a sequence of items vertically and numbers them consecutively.
Example
Loading compiler...
You can easily switch all your enumerations to a different numbering style with a set rule.
Loading compiler...
You can also use enum.item to programmatically customize the number of each item in the enumeration:
Loading compiler...
Syntax
This functions also has dedicated syntax:
- Starting a line with a plus sign creates an automatically numbered enumeration item.
- Starting a line with a number followed by a dot creates an explicitly numbered enumeration item.
Enumeration items can contain multiple paragraphs and other block-level content. All content that is indented more than an item's marker becomes part of that item.
#enum(
tight: bool,
numbering: str | function,
start: auto | int,
full: bool,
reversed: bool,
indent: length,
body-indent: length,
spacing: auto | length,
number-align: alignment,
children
) -> contentParameters
Prop
Type
Definitions
An enumeration item.
#enum.item(
number,
body
) -> contentParameters
Prop
Type