From 80467d1b184a045a30db78f84084b7af76a5f89b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 13 Jul 2014 15:36:14 -0700 Subject: DokuWiki writer: Use pointy brackets for email links. (#1398) --- src/Text/Pandoc/Writers/DokuWiki.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs index 9f748ffe5..05db00361 100644 --- a/src/Text/Pandoc/Writers/DokuWiki.hs +++ b/src/Text/Pandoc/Writers/DokuWiki.hs @@ -419,6 +419,8 @@ inlineToDokuWiki opts (Link txt (src, _)) = do label <- inlineListToDokuWiki opts txt case txt of [Str s] | escapeURI s == src -> return src + | "mailto:" ++ escapeURI s == src -> return $ + "<" ++ s ++ ">" _ -> if isURI src then return $ "[[" ++ src ++ "|" ++ label ++ "]]" else return $ "[[" ++ src' ++ "|" ++ label ++ "]]" -- cgit v1.2.3