git.iko.soy/typeable/pandoc
on master help sign in
Markdown writer: Fixed bug in Image.

URI was getting unescaped twice!

commit249aa9e044f6500264dd9e79a2f3cb2cb821e44f authorJohn MacFarlane <jgm@berkeley.edu> dateSun 26 Dec 2010, 10:23 (16 years ago) parent87429ef
1 file changed+1−1
src/Text/Pandoc/Writers/Markdown.hs+1−1
src/Text/Pandoc/Writers/Markdown.hs+1−1
@@ -499,7 +499,7 @@ inlineToMarkdown opts (Image alternate (source, tit)) = do
499499 (alternate == [Str source]) -- to prevent autolinks
500500 then [Str "image"]
501501 else alternate
502− linkPart <- inlineToMarkdown opts (Link txt (unescapeURI source, tit))
502+ linkPart <- inlineToMarkdown opts (Link txt (source, tit))
503503 return $ "!" <> linkPart
504504inlineToMarkdown _ (Note contents) = do
505505 modify (\st -> st{ stNotes = contents : stNotes st })