git.iko.soy/typeable/pandoc
on master help sign in
Don't render LaTeX images with data: URIs.

LaTeX can't handle these. Note that --extract-media can be used when the input contains data: URIs. Closes #3636.

commitf870a2d8ea8cca5c8cf9ca30d87e0ff758618f18 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 18 May 2017, 22:50 (9 years ago) parent9176127
1 file changed+3
src/Text/Pandoc/Writers/LaTeX.hs+3
src/Text/Pandoc/Writers/LaTeX.hs+3
@@ -1062,6 +1062,9 @@ inlineToLaTeX (Link _ txt (src, _)) =
10621062 src' <- stringToLaTeX URLString (escapeURI src)
10631063 return $ text ("\\href{" ++ src' ++ "}{") <>
10641064 contents <> char '}'
1065+inlineToLaTeX il@(Image _ _ ('d':'a':'t':'a':':':_, _)) = do
1066+ report $ InlineNotRendered il
1067+ return empty
10651068inlineToLaTeX (Image attr _ (source, _)) = do
10661069 setEmptyLine False
10671070 modify $ \s -> s{ stGraphics = True }