heading

fnTextNode heading(string text, int level, string styleName = "") @safe pure nothrow

Creates a heading node with the given outline level and text.

Parameters

textThe heading text.
levelThe outline level (1-based).
styleNameOptional style name.

Returns

A TextNode of kind HEADING.