Imports and exports RadFlowDocument instances from/to Markdown text (.md / .markdown), supporting CommonMark and GitHub Flavored Markdown (GFM).
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Md
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class MarkdownFormatProvider : TextBasedFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, ITextBasedFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>TextBasedFormatProviderBase<RadFlowDocument>MarkdownFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance with default import and export settings.
public MarkdownFormatProvider()
Properties
Gets a value indicating whether this provider supports export.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether this provider supports import.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets the export settings.
Gets or sets the import settings.
Gets the file extensions supported by this provider.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Exports the specified document.
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
The document.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Imports the specified input.
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
The input.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: