TRVMarkdownProperties.SaveOptions

<< Click to display table of contents >>

TRVMarkdownProperties.SaveOptions

Options for Markdown saving.

type // defined in RVStyle unit
  TRVMarkdownSaveOption = (
    rvmdsoUseSetextHeadings, 
    rvmdsoCompact,           
    rvmdsoListInBlockQuote,  
    rvmdsoUseBR,             
    rvmdsoOverrideImages,
    rvmdsoUseItemImageFileNames,

    rvmdsoInlineImages,
    );
  TRVMarkdownSaveOptions = set of TRVMarkdownSaveOption;
property SaveOptions: TRVMarkdownSaveOptions;

(introduced in version 19, updated in v21)

Option

Meaning

rvmdsoUseSetextHeadings

Using Setext heading (underlined paragraphs) instead of ATX headings (text surrounded by '#' characters) when possible

rvmdsoCompact

Storing compact (but less readable) Markdown

rvmdsoListInBlockQuote

This option is used for paragraphs that have both bullets/numbering and a block-quote style template.

If not included, they are saved as block quotes in lists.

If included, they are saved as lists in block quotes

rvmdsoUseBR

Saving line (or paragraph) breaks as <br> in places where Markdown does not allow line breaks.

If this option is not included, they are saved as space characters.

rvmdsoOverrideImages

If set, TRichView can override existing images.

If not set, TRichView generates unique names for images.

rvmdsoUseItemImageFileNames

If included, images with defined (non-empty) file names will not be saved, but their file names will be written in Markdown. If this option is included, OnSaveImage2 event has initial value of the Location parameter equal to the image file name.

File names for items are defined via rvespImageFileName string property.

rvmdsoInlineImages

If included, images are stored directly in Markdown text (in base64 encoding). Otherwise images are saved in external files.

Default value:

for TRichView, TRichViewEdit, TDBRichView:
[rvmdsoUseSetextHeadings, rvmdsoUseItemImageFileNames]

for TDBRichViewEdit, TcxTRichViewEdit.Properties:
[rvmdsoUseSetextHeadings, rvmdsoUseItemImageFileNames, rvmdsoInlineImages]

 

See also

TRVHTMLSaveProperties.ImageOptions (has similar options for saving images in HTML)