I've been facing difficulties grasping the concept of rendering Katex without relying on $$ before and after the math expression. According to Katex's repository on GitHub, I should use the following code:
<script>
renderMathInElement(document.body);
</script>
However, I find myself still needing to use $$ for every line of code. Is there a way to render the entire page in Katex? Thank you!