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 : MarkdownBlockSyntaxRemarks
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
MarkdownBlockSyntaxMarkdownGridTableSyntax
Properties
| Name | Description |
|---|---|
| Columns | Gets the columns of the table, from its first line. |
| LineTokens | Gets the lines of the table, with their line endings. |
| Rows | Gets the rows of the table: the rows above a line of =, +===+, are the header. |
Columns
MarkdownGridTableSyntax.csGets the columns of the table, from its first line.
public ImmutableArray<MarkdownGridTableColumn> Columns { get; }Property value
LineTokens
MarkdownGridTableSyntax.csGets the lines of the table, with their line endings.
public ImmutableArray<SyntaxToken> LineTokens { get; }Property value
Gets the rows of the table: the rows above a line of =, +===+, are the header.
public ImmutableArray<MarkdownGridTableRow> Rows { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) |
Accept overloads
Accept(MarkdownSyntaxVisitor)
MarkdownGridTableSyntax.cspublic override void Accept(MarkdownSyntaxVisitor visitor)Parameters
visitorMarkdownSyntaxVisitor
No documentation is available.
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
MarkdownGridTableSyntax.cspublic override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)No documentation is available.