ListItemParser Class

A parser base class for a list item.

public abstract class ListItemParser

Constructors

NameDescription
ListItemParser()

ListItemParser()

protected ListItemParser()

No documentation is available.

Properties

NameDescription
OpeningCharactersDefines the characters that are used for detecting this list item.

OpeningCharacters

ListItemParser.cs

Defines the characters that are used for detecting this list item.

public char[]? OpeningCharacters { get; protected set; }

Property value

char[]?

Methods

NameDescription
TryParse(BlockProcessor, char, ListInfo)Tries to parse the current input as a list item for this particular instance.

TryParse(BlockProcessor, char, ListInfo)

Tries to parse the current input as a list item for this particular instance.

public abstract bool TryParse(BlockProcessor state, char pendingBulletType, out ListInfo result)

Parameters

state BlockProcessor
The block processor
pendingBulletType char
The type of the current bullet type
result ListInfo
The result of parsing

Returns

bool true if parsing was successful; false otherwise