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

Upgrade to MathJax 3.0.1 #321

Merged
merged 2 commits into from
Feb 13, 2020

Conversation

ggrossetie
Copy link
Member

Add MathJax only once then use typesetPromise to refresh the stem blocks.
Otherwise MathJax appends new <style> and <script> elements to the <head>. The only downside is that if eqnums attribute changes it won't be taken into account (you will need to reload the page). But I think it's a fair trade as this value won't change frequently (or at least less frequently than an edit).
Also if it's really an issue we could detect that the value has changed and force MathJax to reload (but for now I think it's unecessary)

resolves #319

@ggrossetie ggrossetie merged commit 3ec5018 into asciidoctor:master Feb 13, 2020
@ggrossetie ggrossetie deleted the issue-319-mathjax-3-0-1 branch February 13, 2020 10:01
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.

Upgrade to MathJax 3.0.1
1 participant