@@ -602,69 +602,73 @@ tests =
603 (para (link "http://example.com/foo" "" "bar"))
603 (para (link "http://example.com/foo" "" "bar"))
605− , "Export option: Disable simple sub/superscript syntax" =:
606− unlines [ "#+OPTIONS: ^:nil"
611− , "Export option: directly select drawers to be exported" =:
612− unlines [ "#+OPTIONS: d:(\"IMPORTANT\")"
620− divWith (mempty, ["IMPORTANT", "drawer"], mempty) (para "23")
622− , "Export option: exclude drawers from being exported" =:
623− unlines [ "#+OPTIONS: d:(not \"BORING\")"
631− divWith (mempty, ["IMPORTANT", "drawer"], mempty) (para "5")
633− , "Export option: don't include archive trees" =:
634− unlines [ "#+OPTIONS: arch:nil"
606+ , testGroup "export options"
608+ [ "disable simple sub/superscript syntax" =:
609+ unlines [ "#+OPTIONS: ^:nil"
614+ , "directly select drawers to be exported" =:
615+ unlines [ "#+OPTIONS: d:(\"IMPORTANT\")"
623+ divWith (mempty, ["IMPORTANT", "drawer"], mempty) (para "23")
625+ , "exclude drawers from being exported" =:
626+ unlines [ "#+OPTIONS: d:(not \"BORING\")"
634+ divWith (mempty, ["IMPORTANT", "drawer"], mempty) (para "5")
636+ , "don't include archive trees" =:
637+ unlines [ "#+OPTIONS: arch:nil"
639− , "Export option: include complete archive trees" =:
642+ , "include complete archive trees" =:
640− unlines [ "#+OPTIONS: arch:t"
643+ unlines [ "#+OPTIONS: arch:t"
641− , "* old :ARCHIVE:"
644+ , "* old :ARCHIVE:"
642− , " boring"
645+ , " boring"
644− let tagSpan t = spanWith ("", ["tag"], [("data-tag-name", t)]) mempty
647+ let tagSpan t = spanWith ("", ["tag"], [("data-tag-name", t)]) mempty
645− in mconcat [ headerWith ("old", [], mempty) 1 ("old" <> tagSpan "ARCHIVE")
648+ in mconcat [ headerWith ("old", [], mempty) 1 ("old" <> tagSpan "ARCHIVE")
646− , para "boring"
649+ , para "boring"
649− , "Export option: include archive tree header only" =:
652+ , "include archive tree header only" =:
650− unlines [ "#+OPTIONS: arch:headline"
653+ unlines [ "#+OPTIONS: arch:headline"
651− , "* old :ARCHIVE:"
654+ , "* old :ARCHIVE:"
652− , " boring"
655+ , " boring"
654− let tagSpan t = spanWith ("", ["tag"], [("data-tag-name", t)]) mempty
657+ let tagSpan t = spanWith ("", ["tag"], [("data-tag-name", t)]) mempty
655− in headerWith ("old", [], mempty) 1 ("old" <> tagSpan "ARCHIVE")
658+ in headerWith ("old", [], mempty) 1 ("old" <> tagSpan "ARCHIVE")
657− , "Export option: limit headline depth" =:
660+ , "limit headline depth" =:
658− unlines [ "#+OPTIONS: H:2"
661+ unlines [ "#+OPTIONS: H:2"
659− , "* section"
662+ , "* section"
660− , "** subsection"
663+ , "** subsection"
661− , "*** list item 1"
664+ , "*** list item 1"
662− , "*** list item 2"
665+ , "*** list item 2"
664− mconcat [ headerWith ("section", [], []) 1 "section"
667+ mconcat [ headerWith ("section", [], []) 1 "section"
665− , headerWith ("subsection", [], []) 2 "subsection"
668+ , headerWith ("subsection", [], []) 2 "subsection"
666− , orderedList [ para "list item 1", para "list item 2" ]
669+ , orderedList [ para "list item 1", para "list item 2" ]
670 , testGroup "Basic Blocks" $
674 , testGroup "Basic Blocks" $