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>?
<p>tag wrapping<img>, but I can't see how to modify\Configure{IMG}in order to obtain that. Let me know if you think I should ask a new question on this regard. – mmj Sep 09 '16 at 14:43\IgnorePar\EndPat beginning of 1st argument of\Configure{IMG}I managed to make tex4ht close the<p>tag before the<img...>tag, but now I have an annoying empty HTML paragraph<p></p>before<img...>. – mmj Sep 09 '16 at 16:01