Heading heading(BaseInline contents, int level, ExtendedAttributes attributes)

Creates heading with level and contents as contents.

Source

Heading heading(
    BaseInline contents, int level, ExtendedAttributes attributes);