Markdown table
markdown_tableConverts CSV, TSV, JSON arrays, or existing Markdown tables into aligned GitHub-flavoured Markdown tables with per-column alignment and optional padding.
Instructions
Make a GitHub-flavoured Markdown table from CSV, TSV, a JSON array (of objects or of arrays), an existing Markdown table (to re-align / re-pad it) or a "rows" array. Per-column alignment (left, center, right), columns padded to line up (optional), pipes escaped as | and line breaks as . CSV delimiter (comma, semicolon, tab) is detected from the first line. Give "text", a file "path" or "rows". Web version: https://s3eidat.github.io/markdown-table/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Or: a path to a CSV/TSV/JSON/Markdown file (UTF-8; use this for big inputs). | |
| rows | No | Or: the table as an array of rows (first row = header unless header is false). | |
| text | No | The CSV / TSV / JSON / Markdown table as inline text. | |
| align | No | Column alignment: one value for all columns or one per column. Default: keep a Markdown input's alignment, else none. | |
| format | No | Input format; "auto" detects Markdown, then JSON, then CSV/TSV. | auto |
| header | No | First row is the header. When false, "Column 1", "Column 2"… headers are added. | |
| output | No | Optional: also write the result to this file path (or folder ending in "/"). The result text is then left out of the reply. Results over 1,000,000 characters are always written to a file. | |
| pretty | No | Pad cells so the columns line up (default true). |