MarkdownSaveOptions

MarkdownSaveOptions class

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

MarkdownSaveOptions

NameDescription
MarkdownSaveOptions()Ctor.

Returns: MarkdownSaveOptions


getBasePath

NameDescription
getBasePath ()Specifies the base path where document with resources will be saved. Default is the current directory of the application.

Returns: String


getExportType

NameDescription
getExportType ()Specifies markdown specification to convert presentation. Default is TextOnly.

Returns: int


getFlavor

NameDescription
getFlavor ()Specifies markdown specification to convert presentation. Default is Multi-markdown.

Returns: int


getHandleRepeatedSpaces

NameDescription
getHandleRepeatedSpaces ()Specifies how repeated regular space characters should be handled during Markdown export. This property defines whether consecutive spaces are: - preserved as regular space characters, - alternated between regular spaces and non-breaking space entities ( ), - or fully replaced (after the first) with a non-breaking space to preserve visual alignment in Markdown output. The default value is HandleRepeatedSpaces#AlternateSpacesToNbsp.

Returns: int


getImagesSaveFolderName

NameDescription
getImagesSaveFolderName ()Specifies folder name to save images. Default is Images.

Returns: String


getNewLineType

NameDescription
getNewLineType ()Specifies whether the generated document should have new lines \r(Macintosh) of \n(Unix) or \r\n(Windows). Default is Unix.

Returns: int


getRemoveEmptyLines

NameDescription
getRemoveEmptyLines ()If set to true, removes empty or whitespace-only lines from the final Markdown output. Default is false.

Returns: boolean


getShowComments

NameDescription
getShowComments ()Specifies whether the generated document should show comments or not. Default is false.

Returns: boolean


getShowHiddenSlides

NameDescription
getShowHiddenSlides ()Specifies whether the generated document should include hidden slides or not. Default is false.

Returns: boolean


getShowSlideNumber

NameDescription
getShowSlideNumber ()Specifies whether the generated document should show number of each slide or not. Default is false.

Returns: boolean


getSlideNumberFormat

NameDescription
getSlideNumberFormat ()Gets or sets the format string used for slide number headers in Markdown output. The format must include the “{0}” placeholder, which will be replaced with the slide index during export. Example: “# Slide {0}” will produce “# Slide 1”, “# Slide 2”, etc.

Returns: String

Exception

ErrorCondition
ArgumentExceptionThrown if the format string does not contain the “{0}” placeholder.

setBasePath

NameDescription
setBasePath (String)Specifies the base path where document with resources will be saved. Default is the current directory of the application.

Returns: void


setExportType

NameDescription
setExportType (int)Specifies markdown specification to convert presentation. Default is TextOnly.

Returns: void


setFlavor

NameDescription
setFlavor (int)Specifies markdown specification to convert presentation. Default is Multi-markdown.

Returns: void


setHandleRepeatedSpaces

NameDescription
setHandleRepeatedSpaces (int)Specifies how repeated regular space characters should be handled during Markdown export. This property defines whether consecutive spaces are: - preserved as regular space characters, - alternated between regular spaces and non-breaking space entities ( ), - or fully replaced (after the first) with a non-breaking space to preserve visual alignment in Markdown output. The default value is HandleRepeatedSpaces#AlternateSpacesToNbsp.

Returns: void


setImagesSaveFolderName

NameDescription
setImagesSaveFolderName (String)Specifies folder name to save images. Default is Images.

Returns: void


setNewLineType

NameDescription
setNewLineType (int)Specifies whether the generated document should have new lines \r(Macintosh) of \n(Unix) or \r\n(Windows). Default is Unix.

Returns: void


setRemoveEmptyLines

NameDescription
setRemoveEmptyLines (boolean)If set to true, removes empty or whitespace-only lines from the final Markdown output. Default is false.

Returns: void


setShowComments

NameDescription
setShowComments (boolean)Specifies whether the generated document should show comments or not. Default is false.

Returns: void


setShowHiddenSlides

NameDescription
setShowHiddenSlides (boolean)Specifies whether the generated document should include hidden slides or not. Default is false.

Returns: void


setShowSlideNumber

NameDescription
setShowSlideNumber (boolean)Specifies whether the generated document should show number of each slide or not. Default is false.

Returns: void


setSlideNumberFormat

NameDescription
setSlideNumberFormat (String)Gets or sets the format string used for slide number headers in Markdown output. The format must include the “{0}” placeholder, which will be replaced with the slide index during export. Example: “# Slide {0}” will produce “# Slide 1”, “# Slide 2”, etc.

Returns: void

Exception

ErrorCondition
ArgumentExceptionThrown if the format string does not contain the “{0}” placeholder.