New to Telerik Document ProcessingStart a free 30-day trial

Imports and exports RadFlowDocument instances from/to Markdown text (.md / .markdown), supporting CommonMark and GitHub Flavored Markdown (GFM).

Definition

Constructors

Initializes a new instance with default import and export settings.

C#
public MarkdownFormatProvider()

Properties

Gets a value indicating whether this provider supports export.

C#
public override bool CanExport { get; }
Property Value:

The value indicating whether can export.

Overrides: FormatProviderBase<RadFlowDocument>.CanExport

Gets a value indicating whether this provider supports import.

C#
public override bool CanImport { get; }
Property Value:

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets or sets the export settings.

C#
public MarkdownExportSettings ExportSettings { get; set; }
Exceptions:

ArgumentNullException

Thrown when set to null.

Gets or sets the import settings.

C#
public MarkdownImportSettings ImportSettings { get; set; }
Exceptions:

ArgumentNullException

Thrown when set to null.

Gets the file extensions supported by this provider.

C#
public override IEnumerable<string> SupportedExtensions { get; }
Property Value:

The supported extensions.

Overrides: FormatProviderBase<RadFlowDocument>.SupportedExtensions

Methods

Exports the specified document.

C#
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters:documentRadFlowDocument

The document.

outputStream

The output.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Overrides: FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream, CancellationToken)

Imports the specified input.

C#
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters:inputStream

The input.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Returns:

RadFlowDocument

The imported document.

Overrides: FormatProviderBase<RadFlowDocument>.ImportOverride(Stream, CancellationToken)