aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/SelfContained.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-30 11:49:50 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-30 11:49:50 -0700
commitf70e3c3297bb0d8f953971a84a1a606351fdda40 (patch)
treec95d0f44861578c828aabcade0d0584b25d5eb96 /src/Text/Pandoc/SelfContained.hs
parenteb29aab9598eec04a8c2d37ef24f2eaa5ca1435d (diff)
parent357172f13af7e7ddb6a01e16c664776d01f55565 (diff)
downloadpandoc-f70e3c3297bb0d8f953971a84a1a606351fdda40.tar.gz
Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mime
Conflicts: src/Text/Pandoc/Writers/Docx.hs
Diffstat (limited to 'src/Text/Pandoc/SelfContained.hs')
-rw-r--r--src/Text/Pandoc/SelfContained.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/SelfContained.hs b/src/Text/Pandoc/SelfContained.hs
index 1a4e037cf..36839ddd0 100644
--- a/src/Text/Pandoc/SelfContained.hs
+++ b/src/Text/Pandoc/SelfContained.hs
@@ -42,6 +42,7 @@ import Codec.Compression.GZip as Gzip
import qualified Data.ByteString.Lazy as L
import Text.Pandoc.Shared (renderTags', err, fetchItem')
import Text.Pandoc.MediaBag (MediaBag)
+import Text.Pandoc.MIME (MimeType)
import Text.Pandoc.UTF8 (toString, fromString)
import Text.Pandoc.Options (WriterOptions(..))
@@ -98,8 +99,8 @@ cssURLs media sourceURL d orig =
";base64," `B.append` (encode raw)
return $ x `B.append` "url(" `B.append` enc `B.append` rest
-getRaw :: MediaBag -> Maybe String -> String -> String
- -> IO (ByteString, String)
+getRaw :: MediaBag -> Maybe String -> MimeType -> String
+ -> IO (ByteString, MimeType)
getRaw media sourceURL mimetype src = do
let ext = map toLower $ takeExtension src
fetchResult <- fetchItem' media sourceURL src