Skip to main content

Module gfm_table_parser

Module gfm_table_parser 

Source
Expand description

GFM table parser. GFM table parser - converts grammar output to AST nodes

Converts grammar::blocks::gfm_table::GfmTableBlock into the structured table AST representation:

  • NodeKind::Table { alignments }
  • NodeKind::TableRow { header }
  • NodeKind::TableCell { header, alignment }

Cell contents are parsed with the inline parser so emphasis/links/etc work inside table cells.

Functionsยง

parse_gfm_table
Parse a GFM table block into an AST node.