aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-05-31 21:26:07 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-05-31 21:26:07 +0200
commite1a066668921e60dd3ca1e1154a5741650294463 (patch)
tree9ad9920cb8670fc76070fdb9138e07247b57ec08 /test/Tests
parent33a1e4ae1af769eb45b671794da4984bcba25340 (diff)
downloadpandoc-e1a066668921e60dd3ca1e1154a5741650294463.tar.gz
Org reader: respect export option for tags
Tags are appended to headlines by default, but will be omitted when the `tags` export option is set to nil. Closes: #3713
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Readers/Org.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org.hs b/test/Tests/Readers/Org.hs
index 63b32c688..4644d13a0 100644
--- a/test/Tests/Readers/Org.hs
+++ b/test/Tests/Readers/Org.hs
@@ -794,6 +794,12 @@ tests =
, "** DONE todo export"
] =?>
headerWith ("todo-export", [], []) 2 "todo export"
+
+ , "remove tags from headlines" =:
+ unlines [ "#+OPTIONS: tags:nil"
+ , "* Headline :hello:world:"
+ ] =?>
+ headerWith ("headline", [], mempty) 1 "Headline"
]
]