ClassMarkdownImportStyleSettings
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
MarkdownImportStyleSettings()
Declaration
public MarkdownImportStyleSettings()
Properties
BlockQuoteStyleId
Gets or sets the style ID used for block-quote paragraphs.
When null, defaults to "MarkdownBlockQuote".
CodeBlockStyleId
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").
ConfigureBlockQuoteStyle
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.
ConfigureCodeBlockStyle
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.
ConfigureTableStyle
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.
ConfigureThematicBreakStyle
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.
HeadingStyleIds
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.
Declaration
public IDictionary<int, string> HeadingStyleIds { get; }
Property Value
TableStyleId
Gets or sets the style ID used for tables imported from Markdown.
When null, defaults to "MarkdownTable".
ThematicBreakStyleId
Gets or sets the style ID used for thematic-break paragraphs (---, ***, ___).
When null, defaults to "MarkdownThematicBreak".
Declaration
public string ThematicBreakStyleId { get; set; }
Property Value