Use HeadingLevelOffset to shift all heading levels in the output by a fixed number. This is useful when embedding converted content inside a larger document where top-level headings are already in use.
Example
usingGroupDocs.Markdown;varoptions=newConvertOptions{HeadingLevelOffset=2};MarkdownConverter.ToFile("annual-report.docx","heading-offset-example.md",options);// Source: # Title → Output: ### Title// Source: ## Section → Output: #### Section// Heading levels are clamped to the range 1-6.
annual-report.docx is a sample file used in this example. Click here to download it.