AlertInlineParser Class

An inline parser for an alert inline (e.g. `[!NOTE]`).

public class AlertInlineParser : InlineParser

See also

Inheritance
InlineParser AlertInlineParser

Constructors

NameDescription
AlertInlineParser()Initializes a new instance of the AlertInlineParser class.

AlertInlineParser()

AlertInlineParser.cs

Initializes a new instance of the AlertInlineParser class.

public AlertInlineParser()

Properties

NameDescription
AllowNestedAlertsGets or sets a value indicating whether alerts can be nested inside other blocks (e.g. inside a blockquote or a list item). Alerts are never allowed inside another alert block regardless of this setting. Default is false.

AllowNestedAlerts

AlertInlineParser.cs

Gets or sets a value indicating whether alerts can be nested inside other blocks (e.g. inside a blockquote or a list item). Alerts are never allowed inside another alert block regardless of this setting. Default is false.

public bool AllowNestedAlerts { get; set; }

Property value

bool

Methods

NameDescription
Match(InlineProcessor, StringSlice)Attempts to match the parser at the current position.

Match(InlineProcessor, StringSlice)

AlertInlineParser.cs

Attempts to match the parser at the current position.

public override bool Match(InlineProcessor processor, ref StringSlice slice)

Parameters

processor InlineProcessor
slice StringSlice

Returns

bool