-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect empty LineBlock lines in plain writer
The plain writer behaved as a markdown variant with Ext_line_blocks turned off, and so empty lines in a line block would get eliminated. This is surprising, since if there's anything where the intent can be preserved in plain text output it's empty lines. It's still a bit surprising to have nbsps in plain text output, as in the test, where the distinction doesn't really matter, but that'd be an orthogonal change.
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
``` | ||
% pandoc -t plain -f markdown | ||
| 'Twas brillig, and the slithy toves | ||
| Did gyre and gimble in the wabe: | ||
| All mimsy were the borogoves, | ||
| And the mome raths outgrabe. | ||
| | ||
| "Beware the Jabberwock, my son! | ||
| The jaws that bite, the claws that catch! | ||
| Beware the Jubjub bird, and shun | ||
| The frumious Bandersnatch!" | ||
^D | ||
’Twas brillig, and the slithy toves | ||
Did gyre and gimble in the wabe: | ||
All mimsy were the borogoves, | ||
And the mome raths outgrabe. | ||
“Beware the Jabberwock, my son! | ||
The jaws that bite, the claws that catch! | ||
Beware the Jubjub bird, and shun | ||
The frumious Bandersnatch!” | ||
``` |