mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 18:26:36 +00:00
LaTeX writer: don't URI-escape image source.
Usually this is a local file, and replacing spaces with `%20` ruins things. Closes #2825.
This commit is contained in:
@@ -973,7 +973,7 @@ inlineToLaTeX (Image attr _ (source, _)) = do
|
||||
source' = if isURI source
|
||||
then source
|
||||
else unEscapeString source
|
||||
source'' <- stringToLaTeX URLString (escapeURI source')
|
||||
source'' <- stringToLaTeX URLString source'
|
||||
inHeading <- gets stInHeading
|
||||
return $
|
||||
(if inHeading then "\\protect\\includegraphics" else "\\includegraphics") <>
|
||||
|
||||
Reference in New Issue
Block a user