Sign in to follow this  
Ego Eram Reputo

Dr Scott's Markup Renderer

Recommended Posts

Known MathJax rendering bug: Since the release of MathJax version 2.7.0 the browser presents a Script Error dialog (as reported above by Phota) when attempting to render MathJax equations.

 

Solution #1 (quick and dirty): click either Yes or No in the script error dialog and wait for up to 20 seconds. Your equation will be rendered just fine after the browser abandons its attempt to load a problematic JavaScript file.

 

Solution #2 (as suggested by one of the MathJax developers): downgrade to an earlier version of MathJax. The generic code I bundled with the plugin always accesses the latest version of MathJax. To instead load an earlier version add "2.6-" to the this line in your HTML code:

<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>

It goes in after the slash and before the word "latest".....

<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Did some digging. The CDN has shut down (https://www.mathjax.org/cdn-shutting-down/)

 

This means soon(ish) the Mathjax part of the Markup Renderer will stop working. Dang.

 

I've tried changing the scripts to the recommended alternative, but they don't render at all :(

 

I may have to provide a local copy of Mathjax with the plugin. Argh!

  • Like 1

Share this post


Link to post
Share on other sites

Update time! I have good news on the Mathjax front :)

 

For all of the examples in the MathML menu, replace the existing script line with this new one

 

<script  src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>

 

If the example has two lines, replace them both with the single line above.

 

I'm rolling out a new version of the Markup Renderer with these fixes soon.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this