Oxidation number of elements does not render

Steps to reproduce

Paste this into a note:

$$
\ce{2\ox{0,Na} + \ox{0,Cl2} -> 2\ox{+1,Na}\ox{-1,Cl}}
$$

Expected result

Oxidation numbers should be shown with an upper index.

Actual result

The oxidation number won’t be shown properly, there will be \ox in red.

Environment

SYSTEM INFO:
Operating system: android 15 (Xiaomi 2410CRP4CG)
Webview version: 144.0.7559.109
Obsidian version: 1.11.7 (287)
API version: v1.11.7
Login status: not logged in
Language: en
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

This might be because the LaTeX mhchem package is not fully supported. Though \ce works just fine. I have no idea about the scale of this problem (which other LaTeX formulas don’t work). I just stumbled across this when taking notes.

Looks the same here: https://www.mathjax.org/#demo for me.


Obsidian only supports MathJax, by default, as far as I know. Have a look here:

I did some more digging and read the manual:

The oxidation state should actually be written like this:

$$
\ce{Fe^{II}Fe^{III}2O4}
$$

Which works is Obsidian.

I got confused. The \ox command is provided by a different package named chemmacros.