mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 06:55:46 +00:00
Markdown writer: Fixed bug in Image.
URI was getting unescaped twice!
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user