summaryrefslogtreecommitdiff
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:33:18 +0200
commit117d3f4d92d5096cfa51305db6d2fa261ef87d24 (patch)
tree4762cdde72958d0b5903af9aafe3084b6c002c9f /tests
parentad625782b170f4cbbef206bc6ea736c082cb38d7 (diff)
Org reader: respect `author` export option
The `author` option controls whether the author should be included in the final markup. Setting `#+OPTIONS: author:nil` will drop the author 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 9979dc8ec..2ef847f30 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -668,6 +668,12 @@ tests =
, headerWith ("subsection", [], []) 2 "subsection"
, orderedList [ para "list item 1", para "list item 2" ]
]
+
+ , "disable author export" =:
+ unlines [ "#+OPTIONS: author:nil"
+ , "#+AUTHOR: ShyGuy"
+ ] =?>
+ Pandoc nullMeta mempty
]
]