In my quest to create an online hub for IB Math students, I've decided to utilize Circle.so as my platform of choice. The diverse range of features offered by Circle.so, such as code injection capabilities and sleek design, make it an appealing option.
An essential feature that the forum tool (like Circle) must possess is the ability to display Math notation (LaTeX) or support code injection for KaTeX or MathJax integration. It appears that KaTeX is the solution to this requirement. Currently, I am in the process of experimenting with the installation of KaTeX, exploring options to inject code in the head section or as a javascript snippet (as depicted in the provided image).
https://i.sstatic.net/qMMW8.jpg
While I lack expertise in programming, I'm hopeful that someone within the community might have experience implementing this setup and could offer assistance. In attempting to include KaTeX in the head section, I attempted the following code (unsuccessfully).
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="412a2035243901716f70746f77">[email protected]</a>/dist/katex.min.js" integrity="sha384-ljao5I1l+8KYFXG7LNEA7DyaFvuvSCmedUf6Y6JI7LJqiu8q5dEivP2nDdFH31V4" crossorigin="anonymous"></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="157e7461706d55253b24203b23">[email protected]</a>/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
For more information on KaTeX, you can refer to their documentation here.
Note: Circle.so offers the ability to insert custom CSS, which may be useful in this context.