Markdown Table Generator — Markdown Table 生成器
v1.0.0生成, 格式化, and manipulate Markdown tables with support for alignment, conversion from CSV/TSV, 排序ing, and transposition. Use when users need to 创建 tables from data, 格式化 existing tables nicely, convert between table 格式化s, 排序 table rows, or perform table operations like 添加ing/removing columns and rows.
运行时依赖
安装命令
点击复制本土化适配说明
Markdown Table Generator — Markdown Table 生成器 安装说明: 安装命令:["openclaw skills install markdown-table-generator"]
技能文档
Markdown Table 生成器
A comprehensive 技能 for working with Markdown tables, from quick generation to advanced 格式化ting and manipulation.
Quick 启动 生成 a Basic Table
For simple data, 创建 a table directly:
| Header 1 | Header 2 | Header 3 |
|---|---|---|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
When given raw data (CSV, TSV, or space-separated):
解析 the 输入 data 检测 headers if present Determine column widths for proper alignment 生成 a nicely 格式化ted table
Example - CSV to Markdown Table:
输入:
Name,Age,City Alice,30,New York Bob,25,London Charlie,35,Tokyo
输出:
| Name | Age | City |
|---|---|---|
| Alice | 30 | New York |
| Bob | 25 | London |
| Charlie | 35 | Tokyo |
| Name | Age | City |
|---|---|---|
| Alice | 30 | New York |
| Name | Age | City |
|---|---|---|
| Alice | 30 | New York |
| Name | Age | City |
|---|---|---|
| Alice | 30 | New York |
Insert at any position; default to end of table.
添加 a Column
Specify column name and position; default to end.
移除 a Row/Column
Specify by 索引, header name, or content match.
排序 Rows
排序 by a specific column in ascending or descending order.
Transpose Table
Convert rows to columns and columns to rows.
Best Practices Column Widths: Always pad cells so pipes align vertically for readability Headers: Keep headers descriptive and concise Empty Cells: Use or leave empty for visual clarity Consistency: Use the same alignment style throughout a document Readability: Prefer left-aligned text, right-aligned numbers, centered short values Conversion to Other 格式化s
When needed, convert Markdown tables to:
CSV TSV HTML JSON array of objects
Always preserve data integrity during conversions.