Skip to main content

Pandoc Markdown tables

Native pipe table

Table 1: A captioned pipe table that is directly readable by people and Pandoc.
Rank Station Date Daily maximum temperature (°C)
1 Oodnadatta Airport 1960-01-02 50.7
2 Mardie 2022-01-13 50.5

Grid table

Table 2: A grid table discovered through the Pandoc AST.
Rank Technology Cost ($/kW)
1 Solar PV 1250
2 Battery BESS 890.5

Multiline table

Table 3: A multiline table whose headers and cells span source lines.
Centered Header Default Aligned Right Aligned Left Aligned
First row 12.0 Example of a row that spans multiple lines.
Second row 5.0 Here’s another one. Note the blank line between rows.

The document extractor preserves exact source for ordinary pipe tables. For complex Pandoc tables whose source boundaries are ambiguous, it stores Pandoc’s canonical table representation and emits an explicit diagnostic.