Switch from KaTeX to MathJax, ditching mmark

Signed-off-by: Abdulkadir Furkan Şanlı <abdulkadirfsanli@protonmail.com>
This commit is contained in:
Abdulkadir Furkan Şanlı
2019-11-20 12:04:19 +01:00
parent e6290c0bd2
commit 93e639855e
4 changed files with 194 additions and 183 deletions

View File

@ -3,7 +3,7 @@ To add an extended footer section, please create
`layouts/partials/extended_footer.html` in your Hugo directory.
-->
<!-- KaTeX -->
<!-- KaTeX
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js"
@ -12,3 +12,15 @@ To add an extended footer section, please create
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js"
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
-->
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\[', '\]']]
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>