aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc/Readers/RST.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Text/Pandoc/Readers/RST.hs')
-rw-r--r--Text/Pandoc/Readers/RST.hs25
1 files changed, 0 insertions, 25 deletions
diff --git a/Text/Pandoc/Readers/RST.hs b/Text/Pandoc/Readers/RST.hs
index 1239eb688..ad3467d84 100644
--- a/Text/Pandoc/Readers/RST.hs
+++ b/Text/Pandoc/Readers/RST.hs
@@ -592,35 +592,10 @@ referenceLink = try $ do
setState $ state { stateKeys = keyTable' }
return $ Link (normalizeSpaces label) src
-uriScheme = oneOfStrings [ "http://", "https://", "ftp://", "file://",
- "mailto:", "news:", "telnet:" ]
-
-uri = try $ do
- scheme <- uriScheme
- identifier <- many1 (noneOf " \t\n")
- return $ scheme ++ identifier
-
autoURI = do
src <- uri
return $ Link [Str src] (src, "")
-emailChar = alphaNum <|> oneOf "-+_."
-
-emailAddress = try $ do
- firstLetter <- alphaNum
- restAddr <- many emailChar
- let addr = firstLetter:restAddr
- char '@'
- dom <- domain
- return $ addr ++ '@':dom
-
-domainChar = alphaNum <|> char '-'
-
-domain = do
- first <- many1 domainChar
- dom <- many1 (try (do{ char '.'; many1 domainChar }))
- return $ joinWithSep "." (first:dom)
-
autoEmail = do
src <- emailAddress
return $ Link [Str src] ("mailto:" ++ src, "")