TCustomRichView.CopyMarkdown

<< Click to display table of contents >>

TCustomRichView.CopyMarkdown

Copies the selected fragment to the Clipboard as text in Markdown format.

procedure CopyMarkdown;

(Introduced in version 24)

The Clipboard does not have a special format identifier for Markdown, so this method copies Markdown as a plain text. This is an alternative to CopyText.

TRichView does not copy Markdown by default (see CopyDef). If you want to use this method, implement “Copy as Markdown” command and call this method from it.

Parameters for writing Markdown are in TRichView.MarkdownProperties.

This method must be called only when the document is formatted.

See also:

Working with selection;

Working with Clipboard.