Heading level offset

Heading level offset

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

using GroupDocs.Markdown;

var options = new ConvertOptions { HeadingLevelOffset = 2 };
string md = MarkdownConverter.ToMarkdown("chapter.docx", options);

// Source: # Title     → Output: ### Title
// Source: ## Section  → Output: #### Section
// Heading levels are clamped to the range 1-6.