DEV Community

programmerabhi
programmerabhi

Posted on

MathJax not working when appending MATHJax symbol using JQuery in HTML DOM

src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">

why not parse MATHJax symbol in JQuery when append symbol form object to DOM (HTML)

const ques=
[

{
que:" [x = {-b \pm \sqrt{b^2-4ac} \over 2a}.] ",
...................
.................
..............

...............
const que = ques[index];
$(".question").html(que.que);
................

while parsing directly it is worked fine.

Top comments (0)