table_align
Fix ragged Markdown tables by realigning columns, correcting cell counts, and handling CJK character drift. Reads Markdown, CSV, TSV, JSON, or HTML and outputs clean, aligned Markdown with optional per-column alignment.
Instructions
Re-align a messy Markdown table so every column lines up.
Use this when a Markdown table is ragged, when pipes are not aligned in the source, when a row has the wrong number of cells, or when Chinese characters make the columns drift. This is a focused shortcut for table_convert(..., to_format="markdown"); it always outputs Markdown.
Args: text: The table as text. Defaults to reading it as Markdown. from_format: How to read the input. markdown, csv, tsv, json or html. aligns: Per-column alignment, e.g. "left,right", or a single value. Empty means no explicit alignment markers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| aligns | No | ||
| from_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |