While Pandoc produces valid EPUB3 files, its architecture makes it fundamentally unworkable for future development of Quarto. Pandoc is built around an internal format which is much less expressive than HTML5 (it is closer to the expressiveness of Markdown). HTML that is fed into Pandoc comes out nearly unrecognizable; in particular, classes and IDs will likely be stripped or changed and many elements will simply be dropped entirely. The Pandoc developer has confirmed that this is part of the fundamental nature of Pandoc, and is not going to change.
Right now the PandocEpub plugin does a massive amount of post-processing on the Pandoc output in order to restore some of the lost information, but it's strictly a stopgap.
The only other potential command-line tool for this task is Calibre, and that has already been rejected because it generates invalid files which cause problems in some readers, and because it has no EPUB3 support (and probably won't anytime soon, according to the developers).
This means we need to start generating EPUB ourselves, either entirely from scratch or using a library. GEPUB looks like a potential fit here.
While Pandoc produces valid EPUB3 files, its architecture makes it fundamentally unworkable for future development of Quarto. Pandoc is built around an internal format which is much less expressive than HTML5 (it is closer to the expressiveness of Markdown). HTML that is fed into Pandoc comes out nearly unrecognizable; in particular, classes and IDs will likely be stripped or changed and many elements will simply be dropped entirely. The Pandoc developer has confirmed that this is part of the fundamental nature of Pandoc, and is not going to change.
Right now the PandocEpub plugin does a massive amount of post-processing on the Pandoc output in order to restore some of the lost information, but it's strictly a stopgap.
The only other potential command-line tool for this task is Calibre, and that has already been rejected because it generates invalid files which cause problems in some readers, and because it has no EPUB3 support (and probably won't anytime soon, according to the developers).
This means we need to start generating EPUB ourselves, either entirely from scratch or using a library. GEPUB looks like a potential fit here.