ClassMarkdownFormatProvider
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
MarkdownFormatProvider()
Initializes a new instance with default import and export settings.
Declaration
public MarkdownFormatProvider()
Properties
CanExport
Gets a value indicating whether this provider supports export.
Declaration
public override bool CanExport { get; }
Property Value
The value indicating whether can export.
Overrides
CanImport
Gets a value indicating whether this provider supports import.
Declaration
public override bool CanImport { get; }
Property Value
The value indicating whether can import.
Overrides
ExportSettings
Gets or sets the export settings.
Declaration
public MarkdownExportSettings ExportSettings { get; set; }
Property Value
Exceptions
Thrown when set to null.
ImportSettings
Gets or sets the import settings.
Declaration
public MarkdownImportSettings ImportSettings { get; set; }
Property Value
Exceptions
Thrown when set to null.
SupportedExtensions
Gets the file extensions supported by this provider.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
The supported extensions.
Overrides
Methods
ExportOverride(RadFlowDocument, Stream, CancellationToken)
Exports the specified document.
Declaration
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters
document
The document.
output
The output.
cancellationToken
The cancellation token used to cancel the operation.
Overrides
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFlowDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
input
The input.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The imported document.
Overrides