summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2016-10-30 13:20:25 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2016-10-30 13:20:25 +0100
commit63bdc5d08f81365db15b1d9ae11c1d6af72ae35e (patch)
tree9bec9e51f597ba285d30fae303eb65c7053339e8 /tests
parentd5182778c45704b0a2d5d283a7fca5104588af81 (diff)
Org reader: support the `todo` export option
The `todo` export option allows to toggle the inclusion of TODO keywords in the output. Setting this to `nil` causes TODO keywords to be dropped from headlines. The default is to include the keywords.
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 30132c795..3aa38ff0c 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -685,6 +685,12 @@ tests =
, "#+email: no-mail-please@example.com"
] =?>
Pandoc nullMeta mempty
+
+ , "disable inclusion of todo keywords" =:
+ unlines [ "#+OPTIONS: todo:nil"
+ , "** DONE todo export"
+ ] =?>
+ headerWith ("todo-export", [], []) 2 "todo export"
]
]