heading_level_offset property

heading_level_offset property

The offset to apply to all heading levels in the Markdown output. Default is 0 (no change).

This is useful when you are embedding the converted Markdown inside a larger document where top-level headings are already in use. For example, setting this to 1 ensures the converted content starts at ## instead of #.

Definition:

@property
def heading_level_offset(self):
    ...
@heading_level_offset.setter
def heading_level_offset(self, value):
    ...

See Also