# tableMarkdown (@salmonui/editors/markdown-editor)

> The tableMarkdown function of @salmonui/editors/markdown-editor: A GFM table of rows body rows and cols columns, with header cells header(i).

Canonical: https://salmonui.dev/docs/reference/editors/markdown-editor/tableMarkdown

```ts
import { tableMarkdown } from '@salmonui/editors/markdown-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/markdown-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/markdown-editor.md).

## Reference

Kind: function

```ts
function tableMarkdown(rows: number, cols: number, header?: (index: number) => string): string;
```

A GFM table of `rows` body rows and `cols` columns, with header cells `header(i)`.
