Mathjax not working on Ajax based webpage

I use Mathjax to display equations in a web application running in PHP / Ajax. Equations are displayed correctly on the first page load. On the same page, when the user clicks the button, ajax code works to extract some data from the database and display it on one page. But there the equations are not displayed correctly; instead, the latex code is shown as such. But if I refresh the page, then the equations are displayed correctly. How can I solve this problem?

+6
source share
1 answer

For more information, see the MathJax math change documentation on the page .

+13
source

Source: https://habr.com/ru/post/901606/


All Articles