Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path for cover.xhtml in content.opf and nav.xhtml #4069

Closed
anthonynelzin opened this issue Nov 14, 2017 · 0 comments
Closed

Wrong path for cover.xhtml in content.opf and nav.xhtml #4069

anthonynelzin opened this issue Nov 14, 2017 · 0 comments

Comments

@anthonynelzin
Copy link

Hi,

another little bug I found in the ePub writer, this time in the way the cover.html file is referenced in the content.opf guide. The latest release (Pandoc 2.0.2) produces this code:

<guide>
    <reference type="toc" title="TOC" href="nav.xhtml" />
    <reference type="cover" title="Cover" href="cover.xhtml" />
 </guide>

With the way that Pandoc now structures ePub files, it should produce this code:

<guide>
    <reference type="toc" title="TOC" href="nav.xhtml" />
    <reference type="cover" title="Cover" href="text/cover.xhtml" />
 </guide>

(The cover.xhtml file could be moved up in the EPUB folder, besides the nav.xhtml file, but then we would have to talk about the lone title_path.xhtmlfile…) The manifest section of the content.opf file uses the right path.

Related: you'll find the same error in the nav.xhtml file:

<a href="cover.xhtml" epub:type="cover">Cover</a>

Instead of:

<a href="text/cover.xhtml" epub:type="cover">Cover</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants