table method

Parser<TableNode> table()
inherited

GFM Table (| col 1 | col 2 | with delimiter and data rows).

Implementation

Parser<TableNode> table() =>
    seq5(
      position(),
      ref0(tableHeaderRow),
      ref0(tableDelimiterRow),
      ref0(tableDataRow).star(),
      position(),
    ).map5((start, header, alignments, dataRows, stop) {
      final allRows = [header, ...dataRows];
      return TableNode(allRows, alignments, start: start, stop: stop);
    });