markdown-table-generator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarkdown Table Generator Skill
Markdown Table Generator Skill
Markdownテーブルを生成・整形するスキルです。
A skill for generating and formatting Markdown tables.
概要
Overview
データから美しく整列されたMarkdownテーブルを生成します。
Generates neatly aligned Markdown tables from data.
主な機能
Main Features
- 自動整列: 列幅を自動調整
- データソース: CSV、JSON、配列から変換
- 配置指定: 左寄せ、中央、右寄せ
- ソート: 列でのソート
- フィルタリング: 条件に合う行のみ
- スタイル: GitHub、GitLab、標準Markdown
- Auto-alignment: Automatically adjusts column widths
- Data Sources: Convert from CSV, JSON, and arrays
- Alignment Settings: Left, center, or right alignment
- Sorting: Sort by columns
- Filtering: Only display rows that meet conditions
- Styles: GitHub, GitLab, and standard Markdown
使用方法
Usage
以下のデータからMarkdownテーブルを生成:
名前: 田中, 年齢: 30, 職業: エンジニア
名前: 佐藤, 年齢: 25, 職業: デザイナー
名前: 鈴木, 年齢: 28, 職業: マネージャーGenerate a Markdown table from the following data:
Name: Tanaka, Age: 30, Occupation: Engineer
Name: Sato, Age: 25, Occupation: Designer
Name: Suzuki, Age: 28, Occupation: Manager生成例
Examples
基本テーブル
Basic Table
入力データ:
Product, Price, Stock
iPhone 15, 128000, 50
MacBook Pro, 298000, 20
AirPods Pro, 39800, 100生成テーブル:
markdown
| Product | Price | Stock |
|--------------|--------|-------|
| iPhone 15 | 128000 | 50 |
| MacBook Pro | 298000 | 20 |
| AirPods Pro | 39800 | 100 |Input Data:
Product, Price, Stock
iPhone 15, 128000, 50
MacBook Pro, 298000, 20
AirPods Pro, 39800, 100Generated Table:
markdown
| Product | Price | Stock |
|--------------|--------|-------|
| iPhone 15 | 128000 | 50 |
| MacBook Pro | 298000 | 20 |
| AirPods Pro | 39800 | 100 |配置指定
Alignment Settings
左寄せ・中央・右寄せ:
markdown
| 商品 | カテゴリ | 価格 |
|:-------------|:--------:|-------:|
| iPhone 15 | スマホ | 128000 |
| MacBook Pro | PC | 298000 |
| AirPods Pro | オーディオ | 39800 |- = 左寄せ
:--- - = 中央揃え
:---: - = 右寄せ
---:
Left, Center, Right Alignment:
markdown
| Product | Category | Price |
|:-------------|:--------:|-------:|
| iPhone 15 | Smartphone | 128000 |
| MacBook Pro | PC | 298000 |
| AirPods Pro | Audio | 39800 |- = Left alignment
:--- - = Center alignment
:---: - = Right alignment
---:
JSONからテーブル
Table from JSON
入力JSON:
json
[
{"name": "John", "age": 30, "city": "Tokyo"},
{"name": "Jane", "age": 25, "city": "Osaka"}
]生成テーブル:
markdown
| name | age | city |
|------|-----|-------|
| John | 30 | Tokyo |
| Jane | 25 | Osaka |Input JSON:
json
[
{"name": "John", "age": 30, "city": "Tokyo"},
{"name": "Jane", "age": 25, "city": "Osaka"}
]Generated Table:
markdown
| name | age | city |
|------|-----|-------|
| John | 30 | Tokyo |
| Jane | 25 | Osaka |CSVからテーブル
Table from CSV
入力CSV:
Name,Email,Role
Alice,alice@example.com,Admin
Bob,bob@example.com,User
Carol,carol@example.com,Editor生成テーブル:
markdown
| Name | Email | Role |
|-------|---------------------|--------|
| Alice | alice@example.com | Admin |
| Bob | bob@example.com | User |
| Carol | carol@example.com | Editor |Input CSV:
Name,Email,Role
Alice,alice@example.com,Admin
Bob,bob@example.com,User
Carol,carol@example.com,EditorGenerated Table:
markdown
| Name | Email | Role |
|-------|---------------------|--------|
| Alice | alice@example.com | Admin |
| Bob | bob@example.com | User |
| Carol | carol@example.com | Editor |複雑なテーブル
Complex Table
統計データ:
markdown
| メトリクス | 1月 | 2月 | 3月 | 平均 |
|:-------------------|--------:|--------:|--------:|---------:|
| ページビュー | 125,430 | 138,920 | 152,100 | 138,817 |
| ユニークユーザー | 45,230 | 52,100 | 58,920 | 52,083 |
| コンバージョン率 | 2.3% | 2.8% | 3.1% | 2.7% |
| 平均滞在時間(秒) | 145 | 158 | 172 | 158 |Statistical Data:
markdown
| Metric | Jan | Feb | Mar | Average |
|:-------------------|--------:|--------:|--------:|---------:|
| Page Views | 125,430 | 138,920 | 152,100 | 138,817 |
| Unique Users | 45,230 | 52,100 | 58,920 | 52,083 |
| Conversion Rate | 2.3% | 2.8% | 3.1% | 2.7% |
| Average Stay Time (sec) | 145 | 158 | 172 | 158 |チェックリストテーブル
Checklist Table
markdown
| タスク | 担当者 | ステータス | 期限 |
|-------------------------|--------|-----------|-----------|
| デザインレビュー | 鈴木 | ✅ 完了 | 2024-06-15 |
| 実装 | 田中 | 🔄 進行中 | 2024-06-20 |
| テスト | 山田 | ⏳ 待機中 | 2024-06-25 |
| リリース | 佐藤 | ⏳ 待機中 | 2024-06-30 |markdown
| Task | Assignee | Status | Deadline |
|-------------------------|--------|-----------|-----------|
| Design Review | Suzuki | ✅ Completed | 2024-06-15 |
| Implementation | Tanaka | 🔄 In Progress | 2024-06-20 |
| Testing | Yamada | ⏳ Pending | 2024-06-25 |
| Release | Sato | ⏳ Pending | 2024-06-30 |比較表
Comparison Table
markdown
| 機能 | 無料プラン | プロ | エンタープライズ |
|---------------|:---------:|:--------:|:---------------:|
| ユーザー数 | 5人まで | 無制限 | 無制限 |
| ストレージ | 5GB | 100GB | 無制限 |
| サポート | コミュニティ | メール | 24/7 電話 |
| 価格(月額) | ¥0 | ¥1,200 | お問い合わせ |markdown
| Feature | Free Plan | Pro | Enterprise |
|---------------|:---------:|:--------:|:---------------:|
| Number of Users | Up to 5 | Unlimited | Unlimited |
| Storage | 5GB | 100GB | Unlimited |
| Support | Community | Email | 24/7 Phone Support |
| Monthly Price | ¥0 | ¥1,200 | Contact us |整形機能
Formatting Features
未整列テーブルの整形
Formatting Unaligned Tables
入力(未整列):
markdown
|Name|Age|City|
|-|-|-|
|John Doe|30|Tokyo|
|Jane|25|San Francisco|整形後:
markdown
| Name | Age | City |
|----------|-----|---------------|
| John Doe | 30 | Tokyo |
| Jane | 25 | San Francisco |Input (Unaligned):
markdown
|Name|Age|City|
|-|-|-|
|John Doe|30|Tokyo|
|Jane|25|San Francisco|Formatted Result:
markdown
| Name | Age | City |
|----------|-----|---------------|
| John Doe | 30 | Tokyo |
| Jane | 25 | San Francisco |ソート機能
Sorting Feature
以下のテーブルを価格の高い順にソート:
[テーブル]Sort the following table in descending order of price:
[Table]フィルタリング
Filtering
以下のテーブルから在庫50以上の商品のみ抽出:
[テーブル]Extract only products with stock ≥50 from the following table:
[Table]HTMLテーブルへの変換
Conversion to HTML Table
Markdown:
markdown
| Name | Age |
|------|-----|
| John | 30 |HTML:
html
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>30</td>
</tr>
</tbody>
</table>Markdown:
markdown
| Name | Age |
|------|-----|
| John | 30 |HTML:
html
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>30</td>
</tr>
</tbody>
</table>ベストプラクティス
Best Practices
- 適切な列幅: 内容に応じて調整
- 配置: 数値は右寄せ、テキストは左寄せ
- ヘッダー: 明確で簡潔に
- 改行: 長いテキストは適度に分割
- 記号: 絵文字で視認性向上(✅ ❌ ⚠️)
- Appropriate Column Widths: Adjust according to content
- Alignment: Align numbers to the right, text to the left
- Headers: Keep them clear and concise
- Line Breaks: Split long text appropriately
- Symbols: Improve visibility with emojis (✅ ❌ ⚠️)
バージョン情報
Version Information
- スキルバージョン: 1.0.0
- 最終更新: 2025-01-22
使用例:
以下のデータからMarkdownテーブルを生成:
製品名, 価格, 在庫
iPhone 15, 128000, 50
MacBook Pro, 298000, 20
要件:
- 価格は右寄せ
- 在庫は中央揃え
- 価格でソート(降順)美しく整形されたテーブルが生成されます!
- Skill Version: 1.0.0
- Last Updated: 2025-01-22
Usage Example:
Generate a Markdown table from the following data:
Product Name, Price, Stock
iPhone 15, 128000, 50
MacBook Pro, 298000, 20
Requirements:
- Align prices to the right
- Center-align stock
- Sort by price (descending)A beautifully formatted table will be generated!