danburzo / percollate

A command-line tool to turn web pages into readable PDF, EPUB, HTML, or Markdown docs.
https://danburzo.ro/projects/percollate/
MIT License
4.32k stars 166 forks source link

Can I convert an HTML into an epub and automatically generate a table of contents with the H2 headings? #167

Closed jinshuqishi2019 closed 6 months ago

jinshuqishi2019 commented 6 months ago

Feature description

Can I convert an HTML into an epub and automatically generate a table of contents with the H2 headings?

danburzo commented 6 months ago

We could probably add a --toc-level option to control how deep the table of contents of the generated document should be.

danburzo commented 6 months ago

Released --toc-level as part of percollate@v4.1.1.