예제
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, 마크다운 |