numbered

.numbered key:{String} body:{Lambda} -> Node

Node that can be numbered depending on its location in the document and the amount of occurrences according to its key.

The numbering format can be set via numbering by specifying a format for the given key.

.numbering
- headings: 1.1
- greetings: 1.a

# Title 1

.numbered {greetings}
number:
Hello! This block has the number .number, which is `1.a`. The next one will be `1.b`.

Return

the new Numbered node

Parameters

key

name to group (and count) numbered nodes

body

content, with the formatted location of this element (as a string) as an argument

Wiki page

Numbering