I tried using \ce{}
earlier in an answer but it didn't work!
Although this meta post shows that Astronomy has MathJax extensions, why doesn't it work?
After some discussion on meta, I think maybe we can add the mhchem
extension? Not sure. Yes it does slow down page loading, but some equations require me to use non-italicized characters, which mhchem
provides.