diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-22 10:57:48 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-22 11:33:09 -0700 |
commit | d247e9f72e9c9a86cb0053cffc607b5f84f8b3a4 (patch) | |
tree | 21c5e7806e205c2b2489d24b88cae09ebde560ac /test/Tests | |
parent | a9d106d1d1a91e4ce3dce955c1c5423903edae8c (diff) | |
download | pandoc-d247e9f72e9c9a86cb0053cffc607b5f84f8b3a4.tar.gz |
Make `plain` output plainer.
Previously we used the following Project Gutenberg conventions
for plain output:
- extra space before and after level 1 and 2 headings
- all-caps for strong emphasis `LIKE THIS`
- underscores surrounding regular emphasis `_like this_`
This commit makes `plain` output plainer. Strong and Emph
inlines are rendered without special formatting. Headings
are also rendered without special formatting, and with only
one blank line following.
To restore the former behavior, use `-t plain+gutenberg`.
API change: Add `Ext_gutenberg` constructor to `Extension`.
See #5741.
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Writers/Plain.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Tests/Writers/Plain.hs b/test/Tests/Writers/Plain.hs index 2a2eb4226..b8d1f6693 100644 --- a/test/Tests/Writers/Plain.hs +++ b/test/Tests/Writers/Plain.hs @@ -13,7 +13,9 @@ import Text.Pandoc.Builder infix 4 =: (=:) :: (ToString a, ToPandoc a) => String -> (a, String) -> TestTree -(=:) = test (purely (writePlain def) . toPandoc) +(=:) = test (purely (writePlain def{ writerExtensions = + enableExtension Ext_gutenberg plainExtensions }) . + toPandoc) tests :: [TestTree] |