Heading
constructor(depth: Int, text: InlineContent, isDecorative: Boolean = false, customId: String? = null)
Parameters
depth
importance (depth=1 for H1, depth=6 for H6)
isDecorative
whether this heading is decorative. A decorative heading does not trigger automatic page breaks and is not counted in the document's hierarchy and is not numbered.
customId
optional custom ID. If null, the ID is automatically generated. If not null, the ID is used for cross-referencing.