-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ NEW: Add --compact-tables CLI argument (#17)
- Loading branch information
Showing
7 changed files
with
233 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
simple | ||
. | ||
a | bb | ||
| - | - | ||
1 | 2 | ||
. | ||
| a | bb | | ||
| -- | -- | | ||
| 1 | 2 | | ||
. | ||
|
||
empty headers | ||
. | ||
| | | | ||
|- | - | ||
|1 | 2 | ||
. | ||
| | | | ||
| -- | -- | | ||
| 1 | 2 | | ||
. | ||
|
||
no body | ||
. | ||
| | | | ||
|- | - | ||
. | ||
| | | | ||
| -- | -- | | ||
. | ||
|
||
alignment | ||
. | ||
a | b | c | ||
:- | -: | :-: | ||
1 | 2 | 3 | ||
xxxxxx | yyyyyy | zzzzzz | ||
. | ||
| a | b | c | | ||
| :- | -: | :-: | | ||
| 1 | 2 | 3 | | ||
| xxxxxx | yyyyyy | zzzzzz | | ||
. | ||
|
||
nested syntax | ||
. | ||
*a* | [b](link) | ||
| - | - | ||
`c` | [d](link) | ||
. | ||
| *a* | [b](link) | | ||
| -- | -- | | ||
| `c` | [d](link) | | ||
. | ||
|
||
A list takes precedence in case of ambiguity | ||
. | ||
a | b | ||
- | - | ||
1 | 2 | ||
. | ||
a | b | ||
|
||
- | \- | ||
1 | 2 | ||
. | ||
|
||
paragraph before/after | ||
. | ||
x | ||
a | bb | ||
-- | - | ||
1 | 2 | ||
y | ||
. | ||
x | ||
|
||
| a | bb | | ||
| -- | -- | | ||
| 1 | 2 | | ||
| y | | | ||
. | ||
|
||
Nested tables in blockquotes: | ||
. | ||
> a|b | ||
> ---|--- | ||
> bar|baz | ||
. | ||
> | a | b | | ||
> | -- | -- | | ||
> | bar | baz | | ||
. | ||
|
||
references | ||
. | ||
| [![a][b]][c] | | ||
| - | | ||
| [![a][b]][c] | | ||
|
||
[b]: link1 | ||
[c]: link2 | ||
. | ||
| [![a][b]][c] | | ||
| -- | | ||
| [![a][b]][c] | | ||
|
||
[b]: link1 | ||
[c]: link2 | ||
. | ||
|
||
Escaped table 1 | ||
. | ||
| a | | ||
\| - | | ||
. | ||
| a | | ||
| \- | | ||
. | ||
|
||
Escaped table 2 | ||
. | ||
a | ||
-\: | ||
. | ||
a | ||
\-: | ||
. | ||
|
||
Escaped table 3 | ||
. | ||
a | ||
:\- | ||
. | ||
a | ||
:\- | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# hallo | ||
|
||
here's a table: | ||
|
||
| a | b | c | | ||
| :- | -: | :-: | | ||
| 1 | 2 | 3 | | ||
| xxxxxx | yyyyyy | zzzzzz | | ||
|
||
And a larger one (from: https://github.com/hukkin/mdformat-gfm/issues/33) | ||
|
||
| | option 1 | option 2 | option 3 | ... | | ||
| :- | :-: | :-: | -: | :-: | | ||
| comparison 1 | On am we offices expense thought. Its hence ten smile age means. Seven chief sight far point any. Of so high into easy. Dashwoods eagerness oh extensive as discourse sportsman frankness. Husbands see disposed surprise likewise humoured yet pleasure. Fifteen no inquiry cordial so resolve garrets as. Impression was estimating surrounded solicitude indulgence son shy. | asd | asd | asda | | ||
| comparison 2 | asdasd | On am we offices expense thought. Its hence ten smile age means. Seven chief sight far point any. Of so high into easy. Dashwoods eagerness oh extensive as discourse sportsman frankness. Husbands see disposed surprise likewise humoured yet pleasure. Fifteen no inquiry cordial so resolve garrets as. Impression was estimating surrounded solicitude indulgence son shy. | asd | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters