how to use command line to automatically create ToC from all headings?
Hello,
I want to use the command line to convert an html book to epub and select the setting "Generate ToC from all headings." I don't see this option available in the command line interface in the documentation, but it is available in the calibre edit GUI.
Currently, I have to drag the html into calibre, convert to epub, click edit on the converted file, open the ToC GUI, delete the auto-generated ToC, then click "Generate ToC from all headings".
Can someone tell me how to automate this process from the command line with ebook-convert, ebook-edit, or some other tool?
Thank you!
|