Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use components/global.js to get window.MathJax #458

Merged
merged 1 commit into from
Apr 3, 2020
Merged

Use components/global.js to get window.MathJax #458

merged 1 commit into from
Apr 3, 2020

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Mar 19, 2020

This PR uses components/global.js to get the window.MathJax variable (in the menu code, and the require TeX extension) so that in case window.MathJax gets renamed (e.g., if you are using both v2 and v3 together), the original object will be used in these cases.

One still can't use the dynamic loading (since window.MathJax._ is key to that process), but it should work if you have everything loaded up front before changing the variable name.

Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants