Skip to content

"Reset to defaults" Menu and Semantic Enrichment  #3310

Open
@jmegginson

Description

@jmegginson

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.

  1. When "reset to default" is pressed, the collapsible math setting becomes enabled indefinitely (see screenshot below).
  2. 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:

  1. When the page loads confirm that the default configuration is accurate (via MathJax Menu or via the DOM)
  2. Open the MathJax Math Settings menu and activate "Reset to defaults"
  3. Observe that that collapsible math becomes enabled (and checked in the MathJax Menu)
  4. You can use the console to view the (default config) options as indicated below:

image screenshot of console with collapsible set to false but collapsible math is active in the browser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundMergedMerged into develop branchv4

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions