MarkdownAlertSyntax Class

An alert of GitHub: a block quote whose first line is a kind, such as [!NOTE].

public sealed class MarkdownAlertSyntax : MarkdownBlockSyntax
Inheritance
MarkdownBlockSyntax MarkdownAlertSyntax

Properties

NameDescription
AlertKindGets the kind of the alert, as it is written: NOTE, TIP, IMPORTANT, WARNING, CAUTION, or other letters.
BlocksGets the blocks of the alert. The paragraph that starts with the kind has the rest of its lines.
KindTokenGets the [!NOTE] of the alert, which is the first token of its paragraph.
MarkerTokenGets the > of the first line. The markers of the next lines are trivia.

Gets the kind of the alert, as it is written: NOTE, TIP, IMPORTANT, WARNING, CAUTION, or other letters.

public string AlertKind { get; }

Property value

string

Gets the blocks of the alert. The paragraph that starts with the kind has the rest of its lines.

public ImmutableArray<MarkdownBlockSyntax> Blocks { get; }

Gets the [!NOTE] of the alert, which is the first token of its paragraph.

public SyntaxToken KindToken { get; }

Property value

SyntaxToken

Gets the > of the first line. The markers of the next lines are trivia.

public SyntaxToken MarkerToken { get; }

Property value

SyntaxToken

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownAlertSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownAlertSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.