@@ -24,7 +24,7 @@ infix 4 =:
2424testBareLink :: (String, Inlines) -> Test
2525testBareLink (inp, ils) =
2626 test (readMarkdown def{ readerExtensions =
27− Set.fromList [Ext_autolink_bare_uris] })
27+ Set.fromList [Ext_autolink_bare_uris, Ext_raw_html] })
2828 inp (inp, doc $ para ils)
2929
3030autolink :: String -> Inlines
@@ -34,6 +34,9 @@ bareLinkTests :: [(String, Inlines)]
3434bareLinkTests =
3535 [ ("http://google.com is a search engine.",
3636 autolink "http://google.com" <> " is a search engine.")
37+ , ("<a href=\"http://foo.bar.baz\">http://foo.bar.baz</a>",
38+ rawInline "html" "<a href=\"http://foo.bar.baz\">" <>
39+ "http://foo.bar.baz" <> rawInline "html" "</a>")
3740 , ("Try this query: http://google.com?search=fish&time=hour.",
3841 "Try this query: " <> autolink "http://google.com?search=fish&time=hour" <> ".")
3942 , ("HTTPS://GOOGLE.COM,",