mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 08:55:55 +00:00
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.
23 lines
664 B
Markdown
23 lines
664 B
Markdown
```
|
||
% 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!”
|
||
```
|