Render TeX with KaTeX or MathJax
问题 I have a html document <div> <p>One paragraph</p> <p>Another paragraph</p> </div> and in some of the paragraphs, I have <p>Some text and a formula $a = b + c$.</p> and I want the text withing the $-signs to be rendered as TeX math using KaTeX. The problem is that if I want to use it in the browser, I have to use katex.render("c = \\pm\\sqrt{a^2 + b^2}", element); so I need to assign an element. So should I really write my html document like this or are there any other options: <div> <p>One