Ignores a blank line and a whole-line comment
All 8 scenarios hold
These rules cover the shape a table must have. They apply before the parser reads any value.
The Input column holds the lines of the source.
A line is a comment only when // is the first thing on it. Anywhere else // is ordinary cell text, and quoting makes even a leading // part of the value.
expected outcome
broken scenario
| Scenario | Input | Headers? | Data rows? |
|---|---|---|---|
| Blank lines around the table |
|
|
|
| Blank line between rows |
|
|
|
| Comment line above header |
|
|
|
| Comment line between rows |
|
|
|
| Comment line holding pipes |
|
|
|
| Quoted leading slashes |
|
|
|
| Slashes after cell text |
|
|
|
| Slashes starting a cell |
|
|
|