summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-26 10:23:20 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-26 10:23:20 -0800
commit249aa9e044f6500264dd9e79a2f3cb2cb821e44f (patch)
treea388cc3e6222be5bc4d6c813659c9d6d7a2d89af /src/Text/Pandoc/Writers
parent87429ef2f2cc42730ee0f108f49f003776b020f4 (diff)
Markdown writer: Fixed bug in Image.
URI was getting unescaped twice!
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
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 })