I've tried to include MathJax into my helpfiles. unfortunately it changes the line
<script type="text/javascript" src="http%3A%2F%2Fcdn.mathjax.org%2Fmathjax%2Flatest%2FMathJax.js%3Fconfig%3DTeX-AMS-MML_HTMLorMML"></script>
to:
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><!----></script>
This does not work, because MathJax tries to execute the "<!---->" as a javascript function using eval() and Internet Explorer kills the script. Writing a script within the script tags does not work too, because it too gets replaced by the <!----> element.
Comments: It's a workaround due to the way the .NET XML classes save the rendered output. They uses the XML method which converts empty elements with an opening and closing tag to self-closing which is invalid in many cases for HTML such as script, div, and span tags. The comment keeps it from doing that.
You can find all occurrences of the element in the branding transformations and change it to (single space between the opening and closing tags) which has the same effect but leaves the element content entirely empty as you want it.
In reality, the branding transformations should be checking for script content too and passing that through if not empty. I'm working on removing the branding transformations and folding their processing back into the presentation styles so it'll being going away and it won't matter soon.
<script type="text/javascript" src="http%3A%2F%2Fcdn.mathjax.org%2Fmathjax%2Flatest%2FMathJax.js%3Fconfig%3DTeX-AMS-MML_HTMLorMML"></script>
to:
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><!----></script>
This does not work, because MathJax tries to execute the "<!---->" as a javascript function using eval() and Internet Explorer kills the script. Writing a script within the script tags does not work too, because it too gets replaced by the <!----> element.
Comments: It's a workaround due to the way the .NET XML classes save the rendered output. They uses the XML method which converts empty elements with an opening and closing tag to self-closing which is invalid in many cases for HTML such as script, div, and span tags. The comment keeps it from doing that.
You can find all occurrences of the
In reality, the branding transformations should be checking for script content too and passing that through if not empty. I'm working on removing the branding transformations and folding their processing back into the presentation styles so it'll being going away and it won't matter soon.