From c2a68ad7632cfa0ee00cd7bac9c7ee58f9947abd Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 14 Nov 2017 21:06:24 -0800 Subject: EPUB writer: Fixed path for cover image. It was previously `media/media/imagename`, and should have been `media/imagename`. --- src/Text/Pandoc/Writers/EPUB.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index 7062fd925..2ed397d36 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -434,7 +434,7 @@ pandocToEPUB version opts doc@(Pandoc meta _) = do case epubCoverImage metadata of Nothing -> return ([],[]) Just img -> do - let coverImage = "media/" ++ takeFileName img + let coverImage = takeFileName img cpContent <- lift $ writeHtml opts'{ writerVariables = ("coverpage","true"): -- cgit v1.2.3