Skip to content

@pumpkin-plugins/docs API / markdown / table

Function: table() ​

table(header, rows): string

Defined in: tools/docs/src/markdown.ts:19

Renders a markdown table.

Parameters ​

string[]

Column titles.

rows ​

string[][]

One array of cell texts per row.

Returns ​

string

The table, without a trailing newline.

Pumpkin Plugins documentation