範例
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 |
- Cell delimiters
,- 行 delimiters
- 将首行設為表头
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 |
+---------+-------+
- Cell delimiters
- 行 delimiters
- 将首行設為表头
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>- Cell delimiters
|- 行 delimiters
- 将首行設為表头
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>- Cell delimiters
,- 行 delimiters
- 将首行設為表头
On- 格式
HTML
Render a headerless semicolon log as an ASCII table
輸入
200;GET;/health
404;GET;/missingExpected answer
+-----+-----+----------+
| 200 | GET | /health |
| 404 | GET | /missing |
+-----+-----+----------+
- Cell delimiters
;- 行 delimiters
- 将首行設為表头
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>- Cell delimiters
,- 行 delimiters
\r\n- 将首行設為表头
Off- 格式
HTML
参數
| 参數 | 默認值 | 輸入與選項 |
|---|---|---|
| Cell delimiters | "," | 支持 \n、\r 和 \t 等跳脫序列 |
| 行 delimiters | "\\r\\n" | 支持 \n、\r 和 \t 等跳脫序列 |
| 将首行設為表头 | false | 開啟或关閉 |
| 格式 | ASCII | ASCII, HTML, Markdown |