The math extension supports TeX but it doesn't appear to support rendering for chemical equations (e.g., \ce{} is not rendered), even though it is possible for them to be supported, according to the developer of this extension (see the MediaWiki-l mailing list archive, https://lists.wikimedia.org/pipermail/mediawiki-l/2015-May/044333.html).
The proposal: