-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 v2.5 not working with PhantomJS #1029
Comments
Try adding <script type="test/x-mathjax-config">
MathJax.Hub.msieHTMLCollectionBug = true;
</script> to your page just before the script that loads |
Adding this line prevents the error from appearing, but the equations no longer render correctly (the equations show up weirdly as a bunch of blue lines). Here is an example of what the phantomjs rendering looks like using v2.4: Here is what it looks like using v2.5 (with the additional line setting you mentioned): |
Thanks for trying that out. The lines are what MathJax used to measure the widths available for the various expressions, and the fact that you are seeing them suggests that MathJax is crashing somewhere during its processing of the output, since you normally would never see these. Are you getting any further console messages? |
I'm not sure if this is practical, but can you send me an example file and the PhantomJS code that you are using? |
When I add the configuration option I do not see any additional errors in the console. I put together this example HTML page and phantomjs script which might help in figuring out what's going on ... its not the exact code I am using but it shows the same problem. http://c.utz.cc/mathjax/index.html The script render.js when run using phantomjs renders the index.html script to a PDF. The index.html includes mathjax 2.5 and sets msieHTMLCollectionBug to true. Also, I noticed that even when running the index.html page from chrome, I see the blue lines and not the rendered equations. Without the msieHTMLCollectionBug flag set to true, the equations render properly in chrome. |
@baron314159 I'm not sure how to go along reproducing this. Is there as specific tool chain you use? |
Oh nevermind. I somehow missed your links. |
If you remove Perhaps there's a connection with #1061. |
Marked as |
I use MathJax with PhantomJS to render PDFs with math equations. I started seeing this error coming from my phantomjs process now that http://cdn.mathjax.org/mathjax/latest points to v2.5:
When I changed my code to point to 2.4-latest, the error went away and my phantomjs process started working again. I am using phantomjs 1.9.7.
The text was updated successfully, but these errors were encountered: