Follow-up Comment #1, bug #423 (project tex4ht):
Dear Joel,
this issue is caused by the nameref support, which is loaded automatically by
hyperref. Each caption, section title and similar stuff is then saved to the
auxilary file, in order to be available for the \nameref command. There can be
expansion issues when the contents are written to the auxilary file, as in
your case.
I don't know if we can fix that on the tex4ht level - we could use something
like \detokenize command to write literal contents of the caption to the aux
file, but in this case you wouldn't save the current value of macros, which
you may want in some cases.
On the document level, you can use the \protect command to disable expansion
of the command when it is written:
\caption{$\protect\left(A\protect\right)$}
BTW, if you want to make an eBook, you may want to take a look at tex4ebook:
https://ctan.org/pkg/tex4ebook?lang=en
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?423>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/