Closed rbolsius closed 1 year ago
Here is a demonstration of the table formatting before the fix:
And after the fix:
Here is the original Markdown used as the test case:
# Table Formatting Test Cases
## Table Without Leading Column Delimiters
one | two
-:|
1 |
12 | abc \| def
123 | abc `|` def
1234 | ``double | ` backtick``
12345 | ```triple | `` backtick```
## Table with Leading Column Delimiters
| one | two
| -:|
| 1 |
| 12 | abc \| def
| 123 | abc `|` def
| 1234 | ``double | ` backtick``
| 12345 | ```triple | `` backtick```
## Indented Tables
1. Indented table without leading column delimiters:
one | two
-:|
1 |
12 | abc \| def
123 | abc `|` def
1234 | ``double | ` backtick``
12345 | ```triple | `` backtick```
2. Indented table with leading column delimiters:
| one | two
| -:|
| 1 |
| 12 | abc \| def
| 123 | abc `|` def
| 1234 | ``double | ` backtick``
| 12345 | ```triple | `` backtick```
Thanks!
This pull request fixes both issues from #138.