aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2016-08-29 14:10:58 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2016-08-29 14:34:39 +0200
commit0568aa5cad5ca5501dc0565b0e341fc5393f67e2 (patch)
tree319e492bb0f58d50548d4fd7f0b7f2945eff8bae /tests
parent117d3f4d92d5096cfa51305db6d2fa261ef87d24 (diff)
downloadpandoc-0568aa5cad5ca5501dc0565b0e341fc5393f67e2.tar.gz
Org reader: respect `email` export option
The `email` option controls whether the email meta-field should be included in the final markup. Setting `#+OPTIONS: email:nil` will drop the email field from the final meta-data output.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Org.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 2ef847f30..5191f63d5 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -674,6 +674,12 @@ tests =
, "#+AUTHOR: ShyGuy"
] =?>
Pandoc nullMeta mempty
+
+ , "disable email export" =:
+ unlines [ "#+OPTIONS: email:nil"
+ , "#+email: no-mail-please@example.com"
+ ] =?>
+ Pandoc nullMeta mempty
]
]