MarkdownGridTableSyntax Class

A grid table of Markdig: a line of columns, +---+---+, then lines that start with |, whose cells are separated by |, and lines that start with +, which separate the rows. A cell can span columns and rows.

public sealed class MarkdownGridTableSyntax : MarkdownBlockSyntax

Remarks

The lines of the table are tokens: the cells are read from them, and the content of each cell is a document of its own, parsed with the options of the tree, whose reference links can use the definitions of the tree, and whose footnote references are to the footnotes of the tree. The nodes of the content of the cells are not descendants of the table: SyntaxNode.DescendantNodes and MarkdownSyntaxRewriter do not reach them. MarkdownSyntaxWalker visits them when it is created with visitGridTableCells, and MarkdownGridTableCell.MapSpan gives the span in the text of the tree of a span of the content of a cell.

Inheritance
MarkdownBlockSyntax MarkdownGridTableSyntax

Properties

NameDescription
ColumnsGets the columns of the table, from its first line.
LineTokensGets the lines of the table, with their line endings.
RowsGets the rows of the table: the rows above a line of =, +===+, are the header.

Gets the columns of the table, from its first line.

public ImmutableArray<MarkdownGridTableColumn> Columns { get; }

Gets the lines of the table, with their line endings.

public ImmutableArray<SyntaxToken> LineTokens { get; }

Gets the rows of the table: the rows above a line of =, +===+, are the header.

public ImmutableArray<MarkdownGridTableRow> Rows { get; }

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownGridTableSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownGridTableSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.