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};stringmd=MarkdownConverter.ToMarkdown("chapter.docx",options);// Source: # Title → Output: ### Title// Source: ## Section → Output: #### Section// Heading levels are clamped to the range 1-6.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.