I'm not entirely sure if this is still the correct platform for mhchem
issues, but I've noticed a mildly annoying extra space that occurs just before mhchem
commands if they are started by a superscript.
To illustrate:
- blah blah $\ce{^{1}H}$
$\ce{^{1}H}$
- blah blah $^{1}\ce{H}$
$^{1}\ce{H}$
and it can occur anywhere in a MathJax block, not just at the start:
- blah blah $x + \ce{^{1}H}$
$x + \ce{^{1}H}$
- blah blah $x + {}^{1}\ce{H}$
$x + {}^{1}\ce{H}$
This is almost imperceptible on Chemistry.SE (you can see it if you zoom in), but I ran into it separately while working on a GitHub Pages blog, where the spacing is more obvious and starts to actually look ugly while reading.
I can 'fix' this by putting the superscript outside of \ce{...}
, or on my other website I can actually manually compensate for it by inserting negative spaces \!
, but neither of these solutions are ideal, IMO.
Is this intended behaviour or a bug? What to do about it (if anything)?