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

MathJax.svgStylesheet() returns null #2542

Closed
jano-m opened this issue Sep 20, 2020 · 1 comment
Closed

MathJax.svgStylesheet() returns null #2542

jano-m opened this issue Sep 20, 2020 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.1
Milestone

Comments

@jano-m
Copy link

jano-m commented Sep 20, 2020

Issue Summary

As of version 3.1.0, Mathjax.svgStylesheet() returns null instead of a copy of stylesheets.

Technical details:

  • MathJax Version: 3.1.0-3.1.2
@jano-m jano-m changed the title MathJax.svgStylesheet() MathJax.svgStylesheet() returns null Sep 20, 2020
@dpvc
Copy link
Member

dpvc commented Sep 23, 2020

Thanks for the report. This is due to commit dc0c2f7 that was to prevent the SVG stylesheet from being updated unnecessarily. But it also disabled the MathJax.svgStylesheet() function after it is called once or the initial typesetting occurs.

If you disable the initial typesetting (by setting MathJax.startup.typeset to false in your configuration, that should let you call Mathjax.svgStylesheet(). Alternatively, you could set MathJax.startup.document.outputJax.svgStyles = null before calling it. Or you could just use MathJax.startup.document.outputJax.svgStyles itself, which will point to the actual stylesheet in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.1
Projects
None yet
Development

No branches or pull requests

2 participants