Hi there,
I am new to this group and asking a question which might have been answered previously.
I am developing an online test platform for school students and mathematics and Mathjax are an integral part of this. I have managed to show dynamic content on my webpage.
As you can see that dynamic math is loading correctly after http get call. However, there are many question in a test and every new question is loaded after clicking on "Next".
The problem is that
the old math from the DOM is not clearing and is shown on the next
question also. The statement of the second question is still present in the DOM despite the JSON data is already updated. (see below)
I am using Mathjax v2 in Angular 16.
I have tried to Typeset the math with element id (MathExample) but it is not working.
MathJax.Hub.Queue(["Typeset",MathJax.Hub,"MathExample"]);
I have already searched a lot on the internet to see if others have encountered similar problems but didn't find anything.
Any help is deeply appreciated. Many thanks in advance.
Kind regards,
Sohail