Options for including mathematics on your website include:
The
<!-- uses MathJax CDN for LaTeX support see https://docs.mathjax.org/en/latest/web/configuration.html for more info --> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> </script> <script> window.MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']], displayMath: [['$$', '$$'], ["\\[", "\\]"]], processEscapes: true } }; </script>
You should then be able to paste $\LaTeX$ equations straight into content files. Both
If you want to insert a dollar sign on a page, as opposed to opening/closing an inline equation, use \\$ and MathJax will escape the character.
Note: if you are opening a page locally and are not connected to the internet then MathJax will not load, you will simply see the unprocessed LaTeX equations.