mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
@@ -250,7 +250,7 @@ getData _ src@('d':'a':'t':'a':':':_) = return $ Left src-- already data: uri
|
||||
getData mimetype src = do
|
||||
let ext = map toLower $ takeExtension src
|
||||
(raw, respMime) <- fetchItem src
|
||||
let raw' = if ext == ".gz"
|
||||
let raw' = if ext `elem` [".gz", ".svgz"]
|
||||
then B.concat $ L.toChunks $ Gzip.decompress $ L.fromChunks [raw]
|
||||
else raw
|
||||
mime <- case (mimetype, respMime) of
|
||||
|
||||
Reference in New Issue
Block a user