ExportOptions

ExportOptions class

Options for exporting Markdown to a document format (reverse conversion).

public class ExportOptions

Constructors

Name Description
ExportOptions() Initializes a new instance of the ExportOptions class.
ExportOptions(FileFormat) Initializes a new instance of the ExportOptions class with the specified target format.

Properties

Name Description
Format { get; set; } Gets or sets the target document format. If not set, the format is inferred from the output file extension.

Remarks

Use this class with FromMarkdown to control how the Markdown content is converted to a document format such as DOCX or PDF.

Examples

var options = new ExportOptions
{
    Format = FileFormat.Pdf
};
MarkdownConverter.FromMarkdown("input.md", "output.pdf", options);

See Also