Open
Description
Issue Summary
Activating Reset to defaults does not consistently set the MathJax configuration back to the default. When activated, collapsible math or Semantic Enrichment is obtrusively enabled and remains enabled indefinitely.
- When "reset to default" is pressed, the collapsible math setting becomes enabled indefinitely (see screenshot below).
- If a change is made in the a11y menu or subsequent activation of "reset to default" is pressed, the Math content disappears
Steps to Reproduce:
- When the page loads confirm that the default configuration is accurate (via MathJax Menu or via the DOM)
- Open the MathJax Math Settings menu and activate "Reset to defaults"
- Observe that that collapsible math becomes enabled (and checked in the MathJax Menu)
- You can use the console to view the (default config) options as indicated below:
It is my understanding that resetting to "default" settings via the MathJax menu should always reset to options in the configuration noted below.
Technical details:
- MathJax Version: 4.0.0-beta.7
- Math Rendering SVG
- Windows 10 19045.5131
- Chrome
I am using the following MathJax configuration via:
<script src="/mathjax/custom-mathjax-config.js" id="MathJax-Config-script"></script>
The Custom Config script contains:
options: {
a11y:{
braille: true,
speech: false, //we generate our own aria-label to match the alttext attribute of math element
subtitles:false,
viewBraille: false,
},
menuOptions:{
settings:{
assistiveMml: true,
collapsible: false
}
}
},
If menuOptions.settings.enrich
is set to false
within the configuration, the Semantic Enrichment menu item remains enabled along with Collapsible Math when the steps above are followed.