EPUB writer: put title_page.xhtml in text/.
This commit is contained in:
parent
2b3e8cb718
commit
4a6868885d
1 changed files with 2 additions and 2 deletions
|
@ -422,7 +422,7 @@ pandocToEPUB version opts doc@(Pandoc meta _) = do
|
|||
tpContent <- lift $ writeHtml opts'{
|
||||
writerVariables = ("titlepage","true"):vars }
|
||||
(Pandoc meta [])
|
||||
let tpEntry = mkEntry "title_page.xhtml" tpContent
|
||||
let tpEntry = mkEntry "text/title_page.xhtml" tpContent
|
||||
|
||||
-- handle pictures
|
||||
-- mediaRef <- P.newIORef []
|
||||
|
@ -658,7 +658,7 @@ pandocToEPUB version opts doc@(Pandoc meta _) = do
|
|||
|
||||
let tpNode = unode "navPoint" ! [("id", "navPoint-0")] $
|
||||
[ unode "navLabel" $ unode "text" (stringify $ docTitle' meta)
|
||||
, unode "content" ! [("src","title_page.xhtml")] $ () ]
|
||||
, unode "content" ! [("src","text/title_page.xhtml")] $ () ]
|
||||
|
||||
navMap <- lift $ evalStateT (mapM (navPointNode navMapFormatter) secs) 1
|
||||
let tocData = UTF8.fromStringLazy $ ppTopElement $
|
||||
|
|
Loading…
Add table
Reference in a new issue