<div dir="ltr"><div dir="ltr"><div>I think it's reasonable that MathJax would never want to apply a text-decoration like "underline" to mathematical content except possibly a single symbol.  But I think that border-bottom would make sense for a <span> in text that contains math (so outside the domain where MathJax operates).<br></div><div><br></div><div>I'm neutral on whether this might lead to a viable change in tex4ht.<br></div><div><br></div><div>In the cited MWE each of the two \underline commands generates in tex4ht "<span class="underline"> and that (outside the scope of MathJax) is tied to the text-decoration "underline".  Instead for the span with math one can change the class attribute from "underline" to, say, "uline", and for that class use the CSS property border-bottom instead of text-decoration, e.g.,</div><div><br></div><div>         span.uline {border-bottom: 0.2ex solid black;}<br><br></div><div>     -- Bill<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">William F Hammond<br>Email: <a href="mailto:gellmu@gmail.com" target="_blank">gellmu@gmail.com</a><br><a href="https://www.facebook.com/william.f.hammond" target="_blank">https://www.facebook.com/william.f.hammond</a><br><a href="http://www.albany.edu/~hammond/" target="_blank">http://www.albany.edu/~hammond/</a><br><br></div></div></div></div></div>