heading
.heading content:{InlineMarkdownContent}
depth:{Int}
ref:{String? = null}
numbered:{Boolean = true}
indexed:{Boolean = true}
breakpage:{Boolean = true}
-> NodeContent copied to clipboard
Creates a heading with fine-grained control over its behavior.
Unlike standard Markdown headings (#, ##, etc.), this function allows explicit control over numbering, page breaks, table of contents indexing, and custom identifiers.
Example:
.heading {My heading} depth:{2} numbered:{no}Content copied to clipboard
Return
a wrapped Heading node
Parameters
content
inline content of the heading
ref
- Optional
- Likely named
optional custom identifier for cross-referencing. If unset, the ID is automatically generated
breakpage
- Optional
- Likely named
whether the heading triggers an automatic page break
Throws
if depth is not in the 1-6 range