So I have this
\includegraphics[width=0.5\linewidth]{./src/images/screenshot--superman.png}
And using make4ht
(tex4ht
) it generates the following markup (I'm pasting it as outputed):
<p> <img
src="./src/images/screenshot--superman.png" alt="PIC"
/>
<a
id="x1-2038r1"></a>
</p>
But It would be pretty awesome to add classes to that image using LaTeX with some kind of hack.
<img class="my-class" src="./src/images/screenshot--superman.png" alt="PIC" />
Is that doable through LaTeX itself, or should I set up some tex4ht
hooks to add an enclosing <div class="my-class"> <img> </div>
?