@@ -380,8 +380,12 @@ tests = [ testGroup "block elements"
380380 , ""
381381 , "[1] Foo"
382382 ]
383− , "span" =: spanWith ("",["foobar"],[]) (str "Some text")
383+ , "span with class" =: spanWith ("",["foobar"],[]) (text "Some text")
384384 =?> "<class name=\"foobar\">Some text</class>"
385+ , "span with anchor" =: spanWith ("anchor", [], []) (text "Foo bar")
386+ =?> "#anchor Foo bar"
387+ , "span with class and anchor" =: spanWith ("anchor", ["foo"], []) (text "bar")
388+ =?> "#anchor <class name=\"foo\">bar</class>"
385389 , testGroup "combined"
386390 [ "emph word before" =:
387391 para (text "foo" <> emph (text "bar")) =?>