HeadingBlockParser Class

Block parser for a HeadingBlock.

public class HeadingBlockParser : BlockParser, IAttributesParseable

See also

Inheritance
BlockParser HeadingBlockParser
Implements

Constructors

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

HeadingBlockParser()

HeadingBlockParser.cs

Initializes a new instance of the HeadingBlockParser class.

public HeadingBlockParser()

Properties

NameDescription
MaxLeadingCountGets or sets the max count of the leading unescaped # characters
TryParseAttributesA delegates that allows to process attached attributes after #

MaxLeadingCount

HeadingBlockParser.cs

Gets or sets the max count of the leading unescaped # characters

public int MaxLeadingCount { get; set; }

Property value

int

TryParseAttributes

HeadingBlockParser.cs

A delegates that allows to process attached attributes after #

public TryParseAttributesDelegate? TryParseAttributes { get; set; }

Methods

NameDescription
Close(BlockProcessor, Block)Performs the close operation.
TryOpen(BlockProcessor)Attempts to open a block at the current parser position.

Close(BlockProcessor, Block)

HeadingBlockParser.cs

Performs the close operation.

public override bool Close(BlockProcessor processor, Block block)

Parameters

processor BlockProcessor
block Block

Returns

bool

TryOpen(BlockProcessor)

HeadingBlockParser.cs

Attempts to open a block at the current parser position.

public override BlockState TryOpen(BlockProcessor processor)

Parameters

processor BlockProcessor

Returns

BlockState