Chinese Reference: https://alpha-beta-eta.github.io/smathml.html
English Reference: https://alpha-beta-eta.github.io/smathml_ref.html
Now SMathML has supported automatic numbering for heading and other entries such as theorem, definition or example, though how to use such a mechanism is tricky.