DEV Community

loading...

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

programmerabhi profile image programmerabhi ・1 min read

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.

Discussion (0)

pic
Editor guide