Controls which styles are applied to Markdown elements during import and allows their visual properties to be customized.
Definition
Namespace:Telerik.Windows.Documents.Flow.FormatProviders.Md
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class MarkdownImportStyleSettings
Inheritance: objectMarkdownImportStyleSettings
Constructors
public MarkdownImportStyleSettings()
Properties
Gets or sets the style ID used for block-quote paragraphs.
When null, defaults to "MarkdownBlockQuote".
public string BlockQuoteStyleId { get; set; }
Gets or sets the base style ID used for fenced code blocks.
When null, defaults to "MarkdownFencedCode".
Language-specific code blocks append an underscore and the language name
(e.g. "MarkdownFencedCode_csharp").
public string CodeBlockStyleId { get; set; }
Gets or sets a callback that is invoked when the block-quote style is auto-created. Use this to override the default visual properties (foreground color, borders, etc.). Not called when the style already exists in the document.
Gets or sets a callback that is invoked when a fenced code-block style is auto-created. The callback receives the style being created, allowing font, background, and other properties to be customized. Not called when the style already exists in the document.
Gets or sets a callback that is invoked when the table style is auto-created. Use this to override the default visual properties (borders, shading, etc.). Not called when the style already exists in the document.
Gets or sets a callback that is invoked when the thematic-break style is auto-created. Use this to override the default visual properties (border color, width, etc.). Not called when the style already exists in the document.
Gets a dictionary that overrides the style ID applied to headings on a per-level basis. Keys are heading levels 1–6; values are the style IDs to apply. Keys outside the 1–6 range are ignored. Levels absent from the dictionary use the corresponding built-in heading style. The referenced styles must already exist in the document's style repository.
public IDictionary<int, string> HeadingStyleIds { get; }
Gets or sets the style ID used for tables imported from Markdown.
When null, defaults to "MarkdownTable".
public string TableStyleId { get; set; }
Gets or sets the style ID used for thematic-break paragraphs (---, ***, ___).
When null, defaults to "MarkdownThematicBreak".
public string ThematicBreakStyleId { get; set; }