From d6711bd7d98d69541e8617236c2f2c358dd67307 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 30 Jun 2020 22:19:46 +0200 Subject: Org reader: respect export setting disabling footnotes Footnotes can be removed from the final document with the `#+OPTION: f:nil` export setting. --- test/Tests/Readers/Org/Directive.hs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/Tests/Readers/Org') 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" -- cgit v1.2.3