Hi erion, Welcome to the forum.
I use the GUI so I'm not a commandline expert, but I think you're missing a
--chapter conversion option.
In the GUI to detect chapters at <h1> or <h2> you need this code:
Code:
//*[name()='h1' or name()='h2']
so my guess is you need to add something like
Code:
--chapter "//*[name()='h1' or name()='h2']"
to the command you showed above.
(I get confused with quotes usage on the commandline, so apologies if I haven't got it exactly correct)