table

fun table(headers: List<String>, rows: List<List<String>>, alignments: List<TableAlignment> = List(headers.size) { TableAlignment.LEFT })(source)

Adds a table to the content.

Parameters

headers

The table headers

rows

The table rows, each row is a list of cells

alignments

The column alignments (optional)