misc/katex-header.html

changeset 0
9f27689eb130
equal deleted inserted replaced
-1:000000000000 0:9f27689eb130
1 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" integrity="sha384-Xi8rHCmBmhbuyyhbI88391ZKP2dmfnOl4rT9ZfRI7mLTdk1wblIUnrIq35nqwEvC" crossorigin="anonymous">
2 <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js" integrity="sha384-X/XCfMm41VSsqRNQgDerQczD69XqmjOOOwYQvr/uuC+j4OPoNhVgjdGFwhvN02Ja" crossorigin="anonymous"></script>
3 <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/contrib/auto-render.min.js" integrity="sha384-+XBljXPPiv+OzfbB3cVmLHf4hdUFHlWNZN5spNQ7rmHTXpd7WvJum6fIACpNNfIR" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
4 <script>
5 document.addEventListener("DOMContentLoaded", function() {
6 renderMathInElement(document.body, {
7 delimiters: [
8 {left: "$$", right: "$$", display: true},
9 {left: "\\(", right: "\\)", display: false},
10 {left: "$", right: "$", display: false},
11 {left: "\\[", right: "\\]", display: true}
12 ]
13 });
14 });
15 </script>

mercurial