You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the container file the pages href are of the format
href="Text/somepage"
In toc file they defined as
href="../Text/somepage"
So in the spine, page maps will have a key Text/somepage for some page and while creating navigation for the same, we use the toc, which will give ../Text/somepage. When fetching the page using this.book.spine.get(target), the key won't match and the page will not be displayed
Solution:
To resolve the links in the toc file to match the ones found in the container file. Assuming the container file is always in the root folder.
The text was updated successfully, but these errors were encountered:
pravin-d
added a commit
to pravin-d/epub.js
that referenced
this issue
Dec 3, 2023
Consider the folder structure
in the container file the pages href are of the format
In toc file they defined as
So in the spine, page maps will have a key
Text/somepage
for some page and while creating navigation for the same, we use the toc, which will give../Text/somepage
. When fetching the page using this.book.spine.get(target), the key won't match and the page will not be displayedSolution:
To resolve the links in the toc file to match the ones found in the container file. Assuming the container file is always in the root folder.
The text was updated successfully, but these errors were encountered: