diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2015-05-23 14:20:17 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2015-05-23 14:23:16 +0200 |
commit | 385dcf5b99331d392422062586d936af87ee0e46 (patch) | |
tree | faaa1e31fdd096c2b071e49fab32f814a6442a91 /tests | |
parent | d8e4a8bc10bfd97d81ec0166fd786742fe3a2370 (diff) | |
download | pandoc-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')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 7 |
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" |