mathjax / mathjax/MathJax

ignoreHtmlClass not checked for MathML content

Open
#2,770 4 comments 1 reaction 1 assignee View on GitHub

@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:
  1. Configure
window.MathJax = {
  options: {
    ignoreHtmlClass: 'nomathjax',
  },
};
  1. Run it on
<math><mi>x</mi></math>
<math class="nomathjax"><mi>x</mi></math>
  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.