Returns input it cannot parse unchanged
All 6 scenarios hold
Formatting must never break a build. The formatter returns input it cannot parse as a well-formed table, exactly as the author wrote it. An escaped quote is not part of the table grammar, so the formatter leaves a table holding one alone.
The first row shows the contrast. The formatter reformats parseable input, and Formatted lines then differs from Table lines.
expected outcome
broken scenario
| Scenario | Table lines | Formatted lines? |
|---|---|---|
| Well-formed table |
|
|
| Extra column in a data row |
|
|
| Missing column in a data row |
|
|
| Escaped quotes in a value |
|
|
| Empty input | [] | [] |
| Whitespace-only input |