weixin_33739523 2016-05-30 13:26 采纳率: 0%
浏览 77

在Chrome上使用Ajax的mathml

I am developing an online test engine. In this project I load questions using AJAX. Some questions contain mathematical equations in the form of MathML.

I am using MathJax for rendering the equations.

In FireFox, everything is working fine. In Chrome if the first question contains MathML it renders perfectly but if the question is loaded using AJAX it does not render.

  • 写回答

1条回答 默认 最新

  • 妄徒之命 2016-05-30 19:17
    关注
    MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
    

    This will cause MathJax to typeset the page when it is next able to do so. It guarantees that the typesetting will synchronize properly with the loading of jax, extensions, fonts, stylesheets, and other asynchronous activity, and is the only truly safe way to ask MathJax to process additional material.

    for more information, check MathJax docs

    评论

报告相同问题?