mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
PDF: better error message for non-converted svg images.
This commit is contained in:
@@ -159,6 +159,7 @@ convertImage tmpdir fname =
|
||||
Just "image/png" -> doNothing
|
||||
Just "image/jpeg" -> doNothing
|
||||
Just "application/pdf" -> doNothing
|
||||
Just "image/svg+xml" -> return $ Left "conversion from svg not supported"
|
||||
_ -> JP.readImage fname >>= \res ->
|
||||
case res of
|
||||
Left e -> return $ Left e
|
||||
|
||||
Reference in New Issue
Block a user