使用例
Turn quoted address rows into a Markdown table
Quoted commas belong to a cell, rather than starting a new column.
入力
Name,Age,Address
"Doe, John",30,"New York, NY"
"Smith, Jane",25,"Los Angeles, CA"Expected answer
| Name | Age | Address |
| ----------- | --- | --------------- |
| Doe, John | 30 | New York, NY |
| Smith, Jane | 25 | Los Angeles, CA |
- セル区切り文字
,- 行区切り文字
- 最初の行をヘッダーにする
On- 形式
Markdown
Make an ASCII comparison of inner-planet moon counts
入力
Planet Moons
Mercury 0
Venus 0
Earth 1
Mars 2Expected answer
+---------+-------+
| Planet | Moons |
+---------+-------+
| Mercury | 0 |
| Venus | 0 |
| Earth | 1 |
| Mars | 2 |
+---------+-------+
- セル区切り文字
- 行区切り文字
- 最初の行をヘッダーにする
On- 形式
ASCII
Create an HTML table from pipe-separated race splits
入力
Leg|Distance km|Minutes
Swim|1.5|30
Bike|40|80
Run|10|50Expected answer
<table class='table table-hover table-sm table-bordered table-nonfluid'><thead class='thead-light'><tr><th>Leg</th><th>Distance km</th><th>Minutes</th></tr></thead><tbody><tr><td>Swim</td><td>1.5</td><td>30</td></tr><tr><td>Bike</td><td>40</td><td>80</td></tr><tr><td>Run</td><td>10</td><td>50</td></tr></tbody></table>- セル区切り文字
|- 行区切り文字
- 最初の行をヘッダーにする
On- 形式
HTML
Keep a quoted line break inside a notes cell
The line break inside the quotation marks remains inside one cell.
入力
ID,Note
1,"First line
Second line"
2,ReadyExpected answer
<table class='table table-hover table-sm table-bordered table-nonfluid'><thead class='thead-light'><tr><th>ID</th><th>Note</th></tr></thead><tbody><tr><td>1</td><td>First line
Second line</td></tr><tr><td>2</td><td>Ready</td></tr></tbody></table>- セル区切り文字
,- 行区切り文字
- 最初の行をヘッダーにする
On- 形式
HTML
Render a headerless semicolon log as an ASCII table
入力
200;GET;/health
404;GET;/missingExpected answer
+-----+-----+----------+
| 200 | GET | /health |
| 404 | GET | /missing |
+-----+-----+----------+
- セル区切り文字
;- 行区切り文字
- 最初の行をヘッダーにする
Off- 形式
ASCII
HTML cells escape active markup
入力
<img src=x onerror=alert(1)>,safeExpected answer
<table class='table table-hover table-sm table-bordered table-nonfluid'><tbody><tr><td><img src=x onerror=alert(1)></td><td>safe</td></tr></tbody></table>- セル区切り文字
,- 行区切り文字
\r\n- 最初の行をヘッダーにする
Off- 形式
HTML
パラメーター
| パラメーター | 既定値 | 入力と選択肢 |
|---|---|---|
| セル区切り文字 | "," | \n、\r、\t などのエスケープシーケンスに対応 |
| 行区切り文字 | "\\r\\n" | \n、\r、\t などのエスケープシーケンスに対応 |
| 最初の行をヘッダーにする | false | オンまたはオフ |
| 形式 | ASCII | ASCII, HTML, マークダウン |