diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-06-30 22:19:46 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2020-06-30 22:30:15 +0200 |
commit | d6711bd7d98d69541e8617236c2f2c358dd67307 (patch) | |
tree | 284696635cac3833311d5db277bf64c317eb0674 /test/Tests/Readers/Org | |
parent | efbc2050315b60c8a753dee6255465f1083019ab (diff) | |
download | pandoc-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.hs | 16 |
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" |