@@ -405,6 +405,9 @@ tests = [ testGroup "block elements"
405 =?> "#anchor Foo bar"
405 =?> "#anchor Foo bar"
406 , "span with class and anchor" =: spanWith ("anchor", ["foo"], []) (text "bar")
406 , "span with class and anchor" =: spanWith ("anchor", ["foo"], []) (text "bar")
407 =?> "#anchor <class name=\"foo\">bar</class>"
407 =?> "#anchor <class name=\"foo\">bar</class>"
408+ , "adjacent spans" =: spanWith ("", ["syllable"], []) (str "wa") <>
409+ spanWith ("", ["syllable"], []) (str "ter")
410+ =?> "<class name=\"syllable\">wa</class><class name=\"syllable\">ter</class>"
408 , testGroup "combined"
411 , testGroup "combined"
409 [ "emph word before" =:
412 [ "emph word before" =:
410 para (text "foo" <> emph (text "bar")) =?>
413 para (text "foo" <> emph (text "bar")) =?>