Org reader: respect export setting disabling footnotes

Footnotes can be removed from the final document with the `#+OPTION:
f:nil` export setting.
This commit is contained in:
Albert Krewinkel
2020-06-30 22:30:15 +02:00
parent efbc205031
commit d6711bd7d9
4 changed files with 23 additions and 2 deletions
+16
View File
@@ -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"