To do this one often need a trick: How annoying. Dealing with this is a slippery slope inevitably involving tex4ht configuration and more, none of which is easy. Not going to go there now. On the list for later.