A table with a comma in a cell
Input
| Name | Note |
| --- | --- |
| Ada | London, UK |Output
Name,Note
Ada,"London, UK"The cell containing a comma is quoted so the column boundary survives.
This extracts a Markdown table into CSV so you can open it in a spreadsheet or feed it to a script. The header row becomes the CSV header, and the alignment separator row is discarded since it carries no data.
It is the quickest way to get numbers out of a README or a wiki page and into something that can calculate.
Each example below is executed against this tool by the test suite, so what you see is what the tool actually produces.
Input
| Name | Note |
| --- | --- |
| Ada | London, UK |Output
Name,Note
Ada,"London, UK"The cell containing a comma is quoted so the column boundary survives.
The details that decide whether a conversion is correct, and where information can be lost without any error being raised.