@@ -497,6 +497,21 @@ tests =
497497 , header 2 ("walk" <> space <> "dog")
498498 ]
499499
500+ , "Tagged headers" =:
501+ unlines [ "* Personal :PERSONAL:"
502+ , "** Call Mom :@PHONE:"
503+ , "** Call John :@PHONE:JOHN: "
504+ ] =?>
505+ let tagSpan t = spanWith ("", ["tag"], [("data-tag-name", t)]) mempty
506+ in mconcat [ header 1 ("Personal" <> tagSpan "PERSONAL")
507+ , header 2 ("Call Mom" <> tagSpan "@PHONE")
508+ , header 2 ("Call John" <> tagSpan "@PHONE" <> tagSpan "JOHN")
509+ ]
510+
511+ , "Untagged header containing colons" =:
512+ "* This: is not: tagged" =?>
513+ header 1 "This: is not: tagged"
514+
500515 , "Comment Trees" =:
501516 unlines [ "* COMMENT A comment tree"
502517 , " Not much going on here"
@@ -509,6 +524,13 @@ tests =
509524 "* COMMENT Test" =?>
510525 (mempty::Blocks)
511526
527+ , "Tree with :noexport:" =:
528+ unlines [ "* Should be ignored :archive:noexport:old:"
529+ , "** Old stuff"
530+ , " This is not going to be exported"
531+ ] =?>
532+ (mempty::Blocks)
533+
512534 , "Paragraph starting with an asterisk" =:
513535 "*five" =?>
514536 para "*five"
@@ -1164,19 +1186,19 @@ tests =
11641186 [ test orgSmart "quote before ellipses"
11651187 ("'...hi'"
11661188 =?> para (singleQuoted "…hi"))
1167−
1189+
11681190 , test orgSmart "apostrophe before emph"
11691191 ("D'oh! A l'/aide/!"
11701192 =?> para ("D’oh! A l’" <> emph "aide" <> "!"))
1171−
1193+
11721194 , test orgSmart "apostrophe in French"
11731195 ("À l'arrivée de la guerre, le thème de l'«impossibilité du socialisme»"
11741196 =?> para "À l’arrivée de la guerre, le thème de l’«impossibilité du socialisme»")
1175−
1197+
11761198 , test orgSmart "Quotes cannot occur at the end of emphasized text"
11771199 ("/say \"yes\"/" =?>
11781200 para ("/say" <> space <> doubleQuoted "yes" <> "/"))
1179−
1201+
11801202 , test orgSmart "Dashes are allowed at the borders of emphasis'"
11811203 ("/foo---/" =?>
11821204 para (emph "foo—"))