I think we'll check out, for one option, the InDesign - > epub -
> Sigil process.
For example, you can launch Sigil under Ubuntu by selecting Applications -
> Sigil -
> Sigil.
Though I use Scrivener —
> Sigil for ebook, and Scrivener — >.
Not exact matches
Then, in
Sigil, select View -
> Code View.
For conversion (e.g. pdf -
> ebook) some tools are rather helpful and getting better, e.g. a combination of pandoc and
sigil.