From 63bdc5d08f81365db15b1d9ae11c1d6af72ae35e Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 30 Oct 2016 13:20:25 +0100 Subject: 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. --- tests/Tests/Readers/Org.hs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/Tests') 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" ] ] -- cgit v1.2.3