Alert Block Parser Class
This class is a block parser that detects quote lines that contain only an alert marker (e.g. "[!NOTE]")
and creates an AlertBlock instead of a plain QuoteBlock.
Definition
Namespace: Sandcastle.Core.Markdown.Parsers
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
C#
public class AlertBlockParser : BlockParserVB
Public Class AlertBlockParser
Inherits BlockParserC++
public ref class AlertBlockParser : public BlockParserF#
type AlertBlockParser =
class
inherit BlockParser
end- Inheritance
- Object ParserBaseBlockProcessor BlockParser AlertBlockParser
Remarks
This version of the parser supports an optional title following the alert type
Constructors
| AlertBlockParser | Constructor |
Properties
| Index |
Gets the index of this parser in BlockParserList or InlineParserList.
(Inherited from ParserBaseBlockProcessor) |
| OpeningCharacters |
Gets the opening characters this parser will be triggered if the character is found.
(Inherited from ParserBaseBlockProcessor) |
Methods
| CanInterrupt |
Determines whether this instance can interrupt the specified block being processed.
(Inherited from BlockParser) |
| Close |
Called when a block matched by this parser is being closed (to allow final computation on the block).
(Inherited from BlockParser) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| HasOpeningCharacter |
Determines whether the specified char is an opening character.
(Inherited from BlockParser) |
| Initialize |
Initializes this parser with the specified parser processor.
(Inherited from ParserBaseBlockProcessor) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| TryContinue |
Tries to continue matching a block already opened.
(Overrides BlockParser.TryContinue(BlockProcessor, Block)) |
| TryOpen |
Tries to match a block opening.
(Overrides BlockParser.TryOpen(BlockProcessor)) |
Events
| Closed | (Inherited from BlockParser) |