@@ -109,7 +109,9 @@ iq _ = []
109109
110110-- Remove relative paths
111111renameImages :: FilePath -> Inline -> Inline
112−renameImages root (Image attr a (url, b)) = Image attr a (collapseFilePath (root </> url), b)
112+renameImages root img@(Image attr a (url, b))
113+ | "data:" `isPrefixOf` url = img
114+ | otherwise = Image attr a (collapseFilePath (root </> url), b)
113115renameImages _ x = x
114116
115117imageToPandoc :: FilePath -> Pandoc