From 249aa9e044f6500264dd9e79a2f3cb2cb821e44f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 26 Dec 2010 10:23:20 -0800 Subject: Markdown writer: Fixed bug in Image. URI was getting unescaped twice! --- src/Text/Pandoc/Writers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 1e74dd470..3b063c8cd 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -499,7 +499,7 @@ inlineToMarkdown opts (Image alternate (source, tit)) = do (alternate == [Str source]) -- to prevent autolinks then [Str "image"] else alternate - linkPart <- inlineToMarkdown opts (Link txt (unescapeURI source, tit)) + linkPart <- inlineToMarkdown opts (Link txt (source, tit)) return $ "!" <> linkPart inlineToMarkdown _ (Note contents) = do modify (\st -> st{ stNotes = contents : stNotes st }) -- cgit v1.2.3