@@ -1159,6 +1159,7 @@ table = try $ do
11591159
11601160inline :: Parser [Char] ParserState (F Inlines)
11611161inline = choice [ whitespace
1162+ , bareURL
11621163 , str
11631164 , endline
11641165 , code
@@ -1471,6 +1472,14 @@ referenceLink constructor (lab, raw) = do
14711472 Nothing -> (\x -> B.str "[" <> x <> B.str "]" <> B.str raw') <$> fallback
14721473 Just (src,tit) -> constructor src tit <$> lab
14731474
1475+bareURL :: Parser [Char] ParserState (F Inlines)
1476+bareURL = try $ do
1477+ guardEnabled Ext_autolink_urls
1478+ (orig, src) <- uri <|> emailAddress
1479+ (guardEnabled Ext_monospace_autolinks >>
1480+ return (return $ B.link src "" (B.codeWith ("",["url"],[]) orig)))
1481+ <|> return (return $ B.link src "" (B.str orig))
1482+
14741483autoLink :: Parser [Char] ParserState (F Inlines)
14751484autoLink = try $ do
14761485 char '<'