Replace Marked with markdown-it. Added some configuration of MathJax

This commit is contained in:
Joakim Persson
2024-07-30 14:30:13 +02:00
parent de3e59afea
commit b4a35bafef
+12 -2
View File
@@ -21,11 +21,21 @@
</script> </script>
<!-- Marked for markdown rendering --> <!-- Marked for markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> <!-- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js"></script>
<!-- Include MathJax library to render mathematical notation --> <!-- Include MathJax library to render mathematical notation -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
window.MathJax = {
loader: { load: ['input/tex', 'output/chtml'] },
tex: {
packages: ['base', 'ams'],
inlineMath: [['$', '$']]
}
};
</script>
<!-- Get the javascript handling communication with the backend --> <!-- Get the javascript handling communication with the backend -->