Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2770
Closed
Open
Issue created Sep 14, 2021 by Administrator@rootContributor

ignoreHtmlClass not checked for MathML content

Created by: xworld21

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
Assignee
Assign to
Time tracking