Gets or sets the offset to apply to all heading levels in the Markdown output. A value of 2 turns # into ###, ## into ####, etc. Heading levels are clamped to the range 1-6.
Gets or sets a value indicating whether to prepend YAML front matter to the Markdown output. When enabled, document metadata (title, author, format, page count) is extracted and written as a YAML block at the beginning of the output.
Gets or sets the maximum number of columns to include per table when converting spreadsheets. Columns beyond this limit are truncated with an ellipsis indicator.
Gets or sets the maximum number of data rows to include per worksheet when converting spreadsheets. Rows beyond this limit are truncated with an ellipsis indicator.
Gets or sets the strategy for customizing resource URIs written to Markdown output.
Remarks
This class allows you to configure how documents are converted to Markdown, including how images are exported, how resource URIs are written, which pages to convert, and how heading levels are adjusted.
By default, images are embedded as Base64 strings in the Markdown output.
Examples
The following examples show different ways to configure conversion options:
// Example 1: Using default options (images embedded as Base64)varoptions=newConvertOptions();// Example 2: Saving images to a foldervaroptions=newConvertOptions{ImageExportStrategy=newExportImagesToFileSystemStrategy("output/images")};// Example 3: Skipping image exportvaroptions=newConvertOptions{ImageExportStrategy=newSkipImagesStrategy()};// Example 4: Converting only the first 3 pagesvaroptions=newConvertOptions{PageNumbers=new[]{1,2,3}};// Example 5: Shifting headings down by 2 levels (# becomes ###)varoptions=newConvertOptions{HeadingLevelOffset=2};// Example 6: Generating YAML front matter from document metadatavaroptions=newConvertOptions{IncludeFrontMatter=true};// Example 7: Combining multiple optionsvaroptions=newConvertOptions{ImageExportStrategy=newExportImagesToFileSystemStrategy("images"),HeadingLevelOffset=1,IncludeFrontMatter=true,PageNumbers=new[]{1,2}};