Repository navigation
|
Hello, I'm trying to have Pandoc grab a page from the web and turn it into an EPUB file. The following works… but fails generating a ToC. Google didn't help finding if Pandoc can be told to read the ToC from a file, and how to format it. FWIW, the web page includes a ToC as a "nav" tag. Cheers,
|
Answered by
Shohreh
Nov 4, 2026
Replies: 1 comment 3 replies
|
|
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It's 3.11 on Windows.
It worked by telling Pandoc to save it as epub2, and then adding the ToC in Sigil. I don't know if the problem lies in the Kobo Clara or my wrongly using Sigil.
pandoc -f html -t epub2 --toc --epub-title-page=false --metadata=title="My Title" --metadata=author="My Author" -o output.epub https://www.acme.com