Skip to main content

MarkdownNodeKinds Class

Definition​

Assembly:Avalonia.Controls.Markdown
Package:Avalonia.Controls.Markdown

Custom Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind registrations for Markdown-specific elements.

public class MarkdownNodeKinds

Inheritance: object -> MarkdownNodeKinds

Fields​

NameDescription
AlertBlockNode kind for GitHub-style alert blocks (note, warning, tip, etc.).
CodeBlockNode kind for fenced code blocks.
CodeInlineNode kind for inline code spans.
HeadingNode kind for Markdown headings (H1–H6).
HtmlBlockNode kind for an HTML block. Children are the rich elements the HTML converter produced; Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData carries the raw source so an unedited block writes back verbatim.
HtmlInlineNode kind for an unrecognized inline HTML tag, preserved as raw source in Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData. Zero-length and invisible in the viewer, emitted verbatim on write.
ImageNode kind for inline image elements.
MarkedNode kind for a highlighted span (==marked==). The kind is what makes the span a mark, so recolouring the highlight - through a style, a theme, or an editing command - leaves it writing back as ==...==.
QuoteBlockNode kind for blockquote sections.
TaskListItemNode kind for task list items (checkboxes).
ThematicBreakNode kind for thematic breaks (horizontal rules).

AlertBlock Field​

Node kind for GitHub-style alert blocks (note, warning, tip, etc.).

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind AlertBlock

CodeBlock Field​

Node kind for fenced code blocks.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind CodeBlock

CodeInline Field​

Node kind for inline code spans.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind CodeInline

Heading Field​

Node kind for Markdown headings (H1–H6).

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind Heading

HtmlBlock Field​

Node kind for an HTML block. Children are the rich elements the HTML converter produced; Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData carries the raw source so an unedited block writes back verbatim.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind HtmlBlock

HtmlInline Field​

Node kind for an unrecognized inline HTML tag, preserved as raw source in Avalonia.Controls.Documents.Serialization.Snapshot.SnapshotNode.CustomData. Zero-length and invisible in the viewer, emitted verbatim on write.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind HtmlInline

Image Field​

Node kind for inline image elements.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind Image

Marked Field​

Node kind for a highlighted span (==marked==). The kind is what makes the span a mark, so recolouring the highlight - through a style, a theme, or an editing command - leaves it writing back as ==...==.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind Marked

QuoteBlock Field​

Node kind for blockquote sections.

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind QuoteBlock

TaskListItem Field​

Node kind for task list items (checkboxes).

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind TaskListItem

ThematicBreak Field​

Node kind for thematic breaks (horizontal rules).

public Avalonia.Controls.Documents.TextModel.TextDocumentNodeKind ThematicBreak