IBlockParser<TProcessor> Interface
Base interface for a BlockParser.
public interface IBlockParser<in TProcessor> : IMarkdownParser<TProcessor>- Implements
Methods
| Name | Description |
|---|---|
| CanInterrupt(TProcessor, Block) | Determines whether this instance can interrupt the specified block being processed. |
| Close(TProcessor, Block) | Called when a block matched by this parser is being closed (to allow final computation on the block). |
| TryContinue(TProcessor, Block) | Tries to continue matching a block already opened. |
| TryOpen(TProcessor) | Tries to match a block opening. |
CanInterrupt(TProcessor, Block)
Determines whether this instance can interrupt the specified block being processed.
Close(TProcessor, Block)
Called when a block matched by this parser is being closed (to allow final computation on the block).
TryContinue(TProcessor, Block)
Tries to continue matching a block already opened.
BlockState TryContinue(TProcessor processor, Block block)Parameters
processorTProcessor- The parser processor.
blockBlock- The block already opened.
Returns
BlockState The result of the match. By default, don't expect any newline
TryOpen(TProcessor)
Tries to match a block opening.
BlockState TryOpen(TProcessor processor)