aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2015-05-23 14:20:17 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2015-05-23 14:23:16 +0200
commit385dcf5b99331d392422062586d936af87ee0e46 (patch)
treefaaa1e31fdd096c2b071e49fab32f814a6442a91 /tests/Tests
parentd8e4a8bc10bfd97d81ec0166fd786742fe3a2370 (diff)
downloadpandoc-385dcf5b99331d392422062586d936af87ee0e46.tar.gz
Org reader: drop trees with a :noexport: tag
Trees having a `:noexport:` tag set are not exported. This mirrors default Emacs Org-Mode behavior.
Diffstat (limited to 'tests/Tests')
-rw-r--r--tests/Tests/Readers/Org.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 7b6773bf5..92e6993df 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -524,6 +524,13 @@ tests =
"* COMMENT Test" =?>
(mempty::Blocks)
+ , "Tree with :noexport:" =:
+ unlines [ "* Should be ignored :archive:noexport:old:"
+ , "** Old stuff"
+ , " This is not going to be exported"
+ ] =?>
+ (mempty::Blocks)
+
, "Paragraph starting with an asterisk" =:
"*five" =?>
para "*five"