@@ -87,6 +87,13 @@ tests =
87 let todoSpan = spanWith ("", ["done", "DONE"], []) "DONE"
87 let todoSpan = spanWith ("", ["done", "DONE"], []) "DONE"
88 in headerWith ("header", [], []) 1 (todoSpan <> space <> "header")
88 in headerWith ("header", [], []) 1 (todoSpan <> space <> "header")
90+ , "emphasis in first word" =:
91+ "** TODO /fix/ this" =?>
92+ let todoSpan = spanWith ("", ["todo", "TODO"], []) "TODO"
93+ in headerWith ("fix-this", [], [])
95+ (todoSpan <> space <> emph "fix" <> space <> "this")
90 , "Header with unknown todo keyword" =:
97 , "Header with unknown todo keyword" =:
91 "* WAITING header" =?>
98 "* WAITING header" =?>
92 headerWith ("waiting-header", [], []) 1 "WAITING header"
99 headerWith ("waiting-header", [], []) 1 "WAITING header"