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

Generate native EPUB table of contents #138

Open
j-xella opened this issue Feb 21, 2023 · 1 comment
Open

Generate native EPUB table of contents #138

j-xella opened this issue Feb 21, 2023 · 1 comment

Comments

@j-xella
Copy link

j-xella commented Feb 21, 2023

When I try creating an e-pub from multiple web pages, I get an e-pub with a special "Table of Contents" page at the beginnig, with links to each article. That is great, but it is just another page in the document.

EPUB format has native support for TOC. When a native TOC exists, many readers can display it, and it makes navigating faster. I wonder if e-pubs generated here could also have this feature?

Also, native EPUB TOC can be multilevel, so if #36 gets implemented, the headings could appear as subitems under the top level article entries in TOC.

@haroldtreen
Copy link
Owner

This sounds interesting. Would be a nice addition.

EpubPress mainly aggregates the content and then stitches it together with this library: https://github.com/kcartlidge/nodepub

Would need to likely update that to get the TOC working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants