MarkdownAlertSyntax Class
An alert of GitHub: a block quote whose first line is a kind, such as [!NOTE].
public sealed class MarkdownAlertSyntax : MarkdownBlockSyntax- Inheritance
MarkdownBlockSyntaxMarkdownAlertSyntax
Properties
| Name | Description |
|---|---|
| AlertKind | Gets the kind of the alert, as it is written: NOTE, TIP, IMPORTANT, WARNING, CAUTION, or other letters. |
| Blocks | Gets the blocks of the alert. The paragraph that starts with the kind has the rest of its lines. |
| KindToken | Gets the [!NOTE] of the alert, which is the first token of its paragraph. |
| MarkerToken | Gets the > of the first line. The markers of the next lines are trivia. |
AlertKind
MarkdownAlertSyntax.csBlocks
MarkdownAlertSyntax.csGets the blocks of the alert. The paragraph that starts with the kind has the rest of its lines.
public ImmutableArray<MarkdownBlockSyntax> Blocks { get; }Property value
KindToken
MarkdownAlertSyntax.csGets the [!NOTE] of the alert, which is the first token of its paragraph.
public SyntaxToken KindToken { get; }Property value
MarkerToken
MarkdownAlertSyntax.csGets the > of the first line. The markers of the next lines are trivia.
public SyntaxToken MarkerToken { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) |
Accept overloads
Accept(MarkdownSyntaxVisitor)
MarkdownAlertSyntax.cspublic override void Accept(MarkdownSyntaxVisitor visitor)Parameters
visitorMarkdownSyntaxVisitor
No documentation is available.
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
MarkdownAlertSyntax.cspublic override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)No documentation is available.