Using MathML in Ionic 2


Hi Community.

I am trying to use MathML into my Ionic Component but its failing. I am getting this error

Unhandled Promise rejection: Template parse errors:
':math:mi' is not a known element:
1. If ':math:mi' is an Angular component, then verify that it is part of this module.
2. If ':math:mi' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. (

but when put the same code on a regular html page its working fine


Hmmm, this is probably because angular think mathML is from a custom angular component, not mathML library.
Looking around gives me the error message that you’re getting. Hmm, you might need to resort to using the raw MathJax library instead.