ignoreHtmlClass not checked for MathML content
Open
@dpvc is already working on this.
Since Dec 28, 2025.
Code Example
Feature Request
v3
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Issue Summary
The ignoreHtmlClass option seems to have no effect on MathML rendering. Maybe it is intended behaviour – I couldn't tell from the documentation.
Steps to Reproduce:
- Configure
window.MathJax = {
options: {
ignoreHtmlClass: 'nomathjax',
},
};
- Run it on
<math><mi>x</mi></math>
<math class="nomathjax"><mi>x</mi></math>
- Both
<math>tags are processed by MathJax
There are situations where I'd like MathJax to render most of the MathML content, but occasionally allow the browser use its native MathML renderer (because e.g. of images embedded in <mtext>). I thought ignoreHtmlClass would help here.
Technical details:
- MathJax Version: 3.2.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.