YamlFrontMatterParser Class
- Inheritance
BlockParserYamlFrontMatterParser
Constructors
| Name | Description |
|---|---|
| YamlFrontMatterParser() | Initializes a new instance of the YamlFrontMatterParser class. |
YamlFrontMatterParser()
YamlFrontMatterParser.csInitializes a new instance of the YamlFrontMatterParser class.
public YamlFrontMatterParser()Properties
| Name | Description |
|---|---|
| AllowInMiddleOfDocument | Allows the YamlFrontMatterBlock to appear in the middle of the markdown file. |
AllowInMiddleOfDocument
YamlFrontMatterParser.csAllows the YamlFrontMatterBlock to appear in the middle of the markdown file.
public bool AllowInMiddleOfDocument { get; set; }Property value
Methods
| Name | Description |
|---|---|
| CreateFrontMatterBlock(BlockProcessor) | Creates the front matter block. |
| TryContinue(BlockProcessor, Block) | Tries to continue matching a block already opened. |
| TryOpen(BlockProcessor) | Tries to match a block opening. |
CreateFrontMatterBlock(BlockProcessor)
YamlFrontMatterParser.csCreates the front matter block.
protected virtual YamlFrontMatterBlock CreateFrontMatterBlock(BlockProcessor processor)Parameters
processorBlockProcessor- The block processor
Returns
YamlFrontMatterBlock The front matter block
TryContinue(BlockProcessor, Block)
YamlFrontMatterParser.csTries to continue matching a block already opened.
public override BlockState TryContinue(BlockProcessor processor, Block block)Parameters
processorBlockProcessor- The parser processor.
blockBlock- The block already opened.
Returns
BlockState The result of the match. By default, don't expect any newline
TryOpen(BlockProcessor)
YamlFrontMatterParser.csTries to match a block opening.
public override BlockState TryOpen(BlockProcessor processor)