MarkdownSaveOptions

MarkdownSaveOptions class

Represents options that control how presentation should be saved to markdown.

public class MarkdownSaveOptions : SaveOptions

Constructors

NameDescription
MarkdownSaveOptions()Ctor.

Properties

NameDescription
BasePath { get; set; }Specifies the base path where document with resources will be saved. Default is the current directory of the application.
DefaultRegularFont { get; set; }Returns or sets font used in case source font is not found. Read-write String.
ExportType { get; set; }Specifies markdown specification to convert presentation. Default is TextOnly.
Flavor { get; set; }Specifies markdown specification to convert presentation. Default is Multi-markdown.
ImagesSaveFolderName { get; set; }Specifies folder name to save images. Default is Images.
NewLineType { get; set; }Specifies whether the generated document should have new lines \r(Macintosh) of \n(Unix) or \r\n(Windows). Default is Unix.
ProgressCallback { get; set; }Represents a callback object for saving progress updates in percentage. See IProgressCallback.
ShowComments { get; set; }Specifies whether the generated document should show comments or not. Default is false.
ShowHiddenSlides { get; set; }Specifies whether the generated document should include hidden slides or not. Default is false.
ShowSlideNumber { get; set; }Specifies whether the generated document should show number of each slide or not. Default is false.
WarningCallback { get; set; }Returns of sets an object which receives warnings and decides whether loading process will continue or will be aborted. Read/write IWarningCallback.

Examples

Example:

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    MarkdownSaveOptions markdownSaveOptions = new MarkdownSaveOptions
    {
        ShowHiddenSlides = true,
        ShowSlideNumber = true,
        Flavor = Flavor.Github,
        ExportType = MarkdownExportType.Sequential,
        NewLineType = NewLineType.Windows
    };
    
    pres.Save("doc.md", new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }, SaveFormat.Md, markdownSaveOptions);
}

See Also