Markdown markup reference
이 콘텐츠는 아직 번역되지 않았습니다.
Fluent extensions declared by the Aprillz.MewUI.Markdown package.
MarkdownPipelineBuilder
Section titled “MarkdownPipelineBuilder”Receiver: MarkdownPipelineBuilder.
| Method | Sets | Summary |
|---|---|---|
UseMathBracketDelimiters() |
Recognizes LaTeX’s bracket delimiters as math: (…) as a MathInline, and […] as a MathBlock when it has its lines to itself and a MathInline otherwise; an opening glued to a letter or digit, or left unclosed, still escapes its parenthesis or bracket. |
MarkdownPresenter
Section titled “MarkdownPresenter”Receiver: MarkdownPresenter and derived types (where T : MarkdownPresenter).
| Method | Sets | Summary |
|---|---|---|
BaseUri(Uri value) |
BaseUri |
Sets the base URI used for relative resources without authorizing access. |
ImageResolver(IMarkdownImageResolver value) |
ImageResolver |
Sets the image resolver; null displays alternative text without I/O. |
IsSelectionEnabled(bool value = true) |
IsSelectionEnabled |
Sets whether text can be selected with the mouse and keyboard. |
Markdown(string value) |
Markdown |
Sets the Markdown source; equal values preserve the current tree. |
MarkdownTheme(MarkdownTheme value) |
MarkdownTheme |
Sets document metrics and color overrides without reparsing. |
OnCopying(Action<MarkdownCopyingEventArgs> handler) |
event Copying |
Subscribes handler to Copying. Occurs before the selected text is written to the clipboard; a handler may replace the text or cancel the copy. |
OnLinkRequested(Action<MarkdownLinkRequestedEventArgs> handler) |
event LinkRequested |
Subscribes handler to LinkRequested. Occurs when a link is activated, for the host to handle; no external navigation occurs automatically. |
OnParseFailed(Action<Exception> handler) |
event ParseFailed |
Subscribes handler to ParseFailed. Occurs when a background parse fails; the previous document stays displayed. |
OnSelectionChanged(Action handler) |
event SelectionChanged |
Subscribes handler to SelectionChanged. Occurs when the selection changes, including when it is cleared. |
Options(MarkdownOptions value) |
Options |
Sets immutable parsing options. |
ParseDelay(TimeSpan value) |
ParseDelay |
Sets the debounce delay after which source changes parse on a worker thread; zero parses synchronously on the UI thread. |
Renderers(MarkdownRenderers value) |
Renderers |
Sets custom renderers consulted before the default presentation; assign a configured instance. |
WithCodeBlockFactory(Func<string, string, FrameworkElement> factory) |
CodeBlockFactory |
Sets CodeBlockFactory and returns the control. |