@@ -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"
@@ -1164,19 +1179,19 @@ tests =
11641179 [ test orgSmart "quote before ellipses"
11651180 ("'...hi'"
11661181 =?> para (singleQuoted "…hi"))
1167−
1182+
11681183 , test orgSmart "apostrophe before emph"
11691184 ("D'oh! A l'/aide/!"
11701185 =?> para ("D’oh! A l’" <> emph "aide" <> "!"))
1171−
1186+
11721187 , test orgSmart "apostrophe in French"
11731188 ("À l'arrivée de la guerre, le thème de l'«impossibilité du socialisme»"
11741189 =?> para "À l’arrivée de la guerre, le thème de l’«impossibilité du socialisme»")
1175−
1190+
11761191 , test orgSmart "Quotes cannot occur at the end of emphasized text"
11771192 ("/say \"yes\"/" =?>
11781193 para ("/say" <> space <> doubleQuoted "yes" <> "/"))
1179−
1194+
11801195 , test orgSmart "Dashes are allowed at the borders of emphasis'"
11811196 ("/foo---/" =?>
11821197 para (emph "foo—"))