Extension:Math/T167569

report
the example string $$\mathrm{HSO_4^-}$$ produces a minus which is not in superscript, while it works correctly with numbers before the minus (e.g. 2-) $$\mathrm{SO_4^{2-}}$$

suggesgtions
you could use HSO4-