MarkdownSyntaxNode Class
The base of every node of a Markdown syntax tree: a block, an inline, or a part of a table.
public abstract class MarkdownSyntaxNode : SyntaxNodeRemarks
The tokens of a node are the text of its construct: the marker of a block quote, the backticks of a code span, the brackets and the destination of a link. The properties of the derived types read them, and give the values they stand for: the level of a heading, the destination of a link without its escapes.
- Inheritance
SyntaxNodeMarkdownSyntaxNode
Properties
| Name | Description |
|---|---|
| Parent | Gets the parent of the node, or null for the document. |
Parent
MarkdownSyntaxNode.csGets the parent of the node, or null for the document.
public MarkdownSyntaxNode? Parent { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | Calls the method of visitor that matches this node. |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) | Calls the method of visitor that matches this node. |
| GetPlainText() | Gets the text of the node without its markup, as a reader sees it. |
| Kind() | Gets the kind of the node. |
Accept overloads
Accept(MarkdownSyntaxVisitor)
Calls the method of visitor that matches this node.
public abstract void Accept(MarkdownSyntaxVisitor visitor)Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
Calls the method of visitor that matches this node.
public abstract TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)Type parameters
TResult
Parameters
visitorMarkdownSyntaxVisitor<TResult>
Returns
TResult?
Exceptions
ArgumentNullExceptionvisitorisnull.