Format Table #
This file provides a simple function for formatting a two-dimensional array of String
s
into a markdown-compliant table.
Equations
- instInhabitedAlignment = { default := Alignment.left }
def
formatTable
(headers : Array String)
(table : Array (Array String))
(alignments : optParam (Option (Array Alignment)) none)
:
Render a two-dimensional array of String
sinto a markdown-compliant table.
`headersis a list of column headers,
`tableis a 2D array of cell contents,
`alignments` describes how to align each table column (default: left-aligned)
Equations
- One or more equations did not get rendered due to their size.