View as Markdown

API reference: @salmonui/editors/markdown-editor

tableMarkdownfunction

import { tableMarkdown } from '@salmonui/editors/markdown-editor';
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).