TOC of a document exported to EPUB

I set the TOC of my document to show all paragraphs with “Heading 1” and “heading 2” styles applied (with the latter nicely nested). This is exactly what I wanted. But, when I export the document to EPUB, the TOC of the resulting EPUB document lists only “Heading 1” entries. How can I also have “Heading 2” appear in the EPUB TOC? Thank you.

Hello,

this seems to be bug tdf#114164 EPUB Export: Headings Levels other than Heading 1 are omitted in Outline, which is not fixed as of today.

Therefore the answer to your question “How can I also have “Heading 2” appear in the EPUB TOC” sadly is: Not at all.