aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-06-30 22:19:46 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2020-06-30 22:30:15 +0200
commitd6711bd7d98d69541e8617236c2f2c358dd67307 (patch)
tree284696635cac3833311d5db277bf64c317eb0674 /test/Tests/Readers/Org
parentefbc2050315b60c8a753dee6255465f1083019ab (diff)
downloadpandoc-d6711bd7d98d69541e8617236c2f2c358dd67307.tar.gz
Org reader: respect export setting disabling footnotes
Footnotes can be removed from the final document with the `#+OPTION: f:nil` export setting.
Diffstat (limited to 'test/Tests/Readers/Org')
-rw-r--r--test/Tests/Readers/Org/Directive.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Directive.hs b/test/Tests/Readers/Org/Directive.hs
index 6d3c1ac52..e92b1bbb9 100644
--- a/test/Tests/Readers/Org/Directive.hs
+++ b/test/Tests/Readers/Org/Directive.hs
@@ -156,6 +156,22 @@ tests =
] =?>
para "Icelandic letter: \\thorn"
+ , testGroup "Option f"
+ [ "disable inline footnotes" =:
+ T.unlines [ "#+OPTIONS: f:nil"
+ , "Funny![fn:funny:or not]"
+ ] =?>
+ para "Funny!"
+
+ , "disable reference footnotes" =:
+ T.unlines [ "#+OPTIONS: f:nil"
+ , "Burn everything[fn:1] down!"
+ , ""
+ , "[fn:2] Not quite everything."
+ ] =?>
+ para "Burn everything down!"
+ ]
+
, "disable inclusion of todo keywords" =:
T.unlines [ "#+OPTIONS: todo:nil"
, "** DONE todo export"