ListItemBlock Class

A list item (Section 5.2 CommonMark specs)

public class ListItemBlock : ContainerBlock
Inheritance
ContainerBlock ListItemBlock

Constructors

NameDescription
ListItemBlock(BlockParser)Initializes a new instance of the ListItemBlock class.

ListItemBlock(BlockParser)

ListItemBlock.cs

Initializes a new instance of the ListItemBlock class.

public ListItemBlock(BlockParser parser)

Parameters

parser BlockParser
The parser used to create this block.

Properties

NameDescription
ColumnWidthGets or sets the column width.
OrderThe number defined for this ListItemBlock in an ordered list
SourceBulletGets or sets the bullet as parsed in the source document. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

ColumnWidth

ListItemBlock.cs

Gets or sets the column width.

public int ColumnWidth { get; set; }

Property value

int

The number defined for this ListItemBlock in an ordered list

public int Order { get; set; }

Property value

int

SourceBullet

ListItemBlock.cs

Gets or sets the bullet as parsed in the source document. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

public StringSlice SourceBullet { get; set; }

Property value

StringSlice