summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Org/ParserState.hs
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 /src/Text/Pandoc/Readers/Org/ParserState.hs
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 'src/Text/Pandoc/Readers/Org/ParserState.hs')
-rw-r--r--src/Text/Pandoc/Readers/Org/ParserState.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Org/ParserState.hs b/src/Text/Pandoc/Readers/Org/ParserState.hs
index ef5f89461..38f95ca95 100644
--- a/src/Text/Pandoc/Readers/Org/ParserState.hs
+++ b/src/Text/Pandoc/Readers/Org/ParserState.hs
@@ -205,6 +205,7 @@ data ExportSettings = ExportSettings
, exportWithAuthor :: Bool -- ^ Include author in final meta-data
, exportWithCreator :: Bool -- ^ Include creator in final meta-data
, exportWithEmail :: Bool -- ^ Include email in final meta-data
+ , exportWithTodoKeywords :: Bool -- ^ Keep TODO keywords in headers
}
instance Default ExportSettings where
@@ -222,6 +223,7 @@ defaultExportSettings = ExportSettings
, exportWithAuthor = True
, exportWithCreator = True
, exportWithEmail = True
+ , exportWithTodoKeywords = True
}