Skip to main content
The table block renders rows, optional headers, optional column sizing, and an optional style.

Rows and cells

A row is an array of cells, and a cell is either a string or a TableCell.
A cell text accepts inline content, so bold, links, and inline formulas all work inside cells. See Inline content for the full set of inline nodes.

Column sizing

The columns field is optional and controls how column widths are computed.
number | number[]
Omit it to size columns equally from the header or first row. Set it to a count for equal columns, or to an array of absolute widths in points where 0 means auto.
Columns are sized equally, derived from the header row or the first data row.
A count produces that many equal width columns.
Each entry is an absolute width in points. A 0 entry is sized automatically from the remaining space.
Array values are absolute widths in points, not fractional weights. [2, 1, 1] means 2pt, 1pt, 1pt, not a 2:1:1 ratio.