diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-05-27 11:46:02 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-05-27 11:46:02 -0700 |
commit | adfb217622a482ad716d9e65e48caef38f7c3654 (patch) | |
tree | 57ee807627e2978e716b0abb3a89a560c51a1941 /src/Text/Pandoc/MIME.hs | |
parent | c99e057d8efe819512b5cd8c26dfc161e33b7031 (diff) | |
download | pandoc-adfb217622a482ad716d9e65e48caef38f7c3654.tar.gz |
Fixed svg handling in EPUB writer.
This is a crude workaroud for #2183.
A correct fix would require having openURL and fetchItem return
a content encoding as well as a content type.
Diffstat (limited to 'src/Text/Pandoc/MIME.hs')
-rw-r--r-- | src/Text/Pandoc/MIME.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/MIME.hs b/src/Text/Pandoc/MIME.hs index 27f7e3414..6fd9ac373 100644 --- a/src/Text/Pandoc/MIME.hs +++ b/src/Text/Pandoc/MIME.hs @@ -433,7 +433,9 @@ mimeTypesList = -- List borrowed from happstack-server. ,("sv4cpio","application/x-sv4cpio") ,("sv4crc","application/x-sv4crc") ,("svg","image/svg+xml") - ,("svgz","image/svg+xml") + -- removed for now, since it causes problems with + -- extensionFromMimeType: see #2183. + -- ,("svgz","image/svg+xml") ,("sw","chemical/x-swissprot") ,("swf","application/x-shockwave-flash") ,("swfl","application/x-shockwave-flash") |