mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
fdef25eb6e
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.
664 B
664 B
% 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!”