Heading
A heading defined via prefix symbols. A heading is identifiable, as it can be looked up in the document and can be referenced. It is also location trackable, meaning its position in the document hierarchy is determined, and possibly displayed.
Parameters
importance (depth=1 for H1, depth=6 for H6)
optional custom ID. If null, the ID is automatically generated. If not null, the ID is used for cross-referencing.
whether this heading can trigger an automatic page break. Decorative headings and auto-generated section headings typically disable this.
whether this heading's position in the document hierarchy is tracked and displayed. When false, the heading is not numbered.
if true, this heading is never included in the table of contents, even if its location is trackable. Useful for headings generated by functions such as .tableofcontents and .bibliography to prevent self-referencing.
Constructors
Properties
Whether this heading is decorative, i.e. it cannot trigger page breaks and its location is not tracked.
Key for localization of the kind of this node, used to look up localized strings in the default com.quarkdown.core.localization.LocalizationTable.
If the heading has a custom ID, it can be used for cross-referencing.
The text of the node as processed inline content.
Functions
Accepts an IdentifierProvider to generate an identifier for this element.
Accepts a visitor.
Returns a sequence of all nodes in the tree, where this is the root node. The sequence is generated by traversing the tree in depth-first order. The root node is excluded from the sequence.
Retrieves the stored media associated with this node, if any.
Registers the location of this node within the document handled by context.
Registers the formatted location of this node within the document handled by context, according to this node's NumberingFormat.