-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkatex.html
28 lines (28 loc) · 1.72 KB
/
katex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
// customised options
// • auto-render specific keys, e.g.:
delimiters: [
//{left: "$$", right: "$$", display: true},
//{left: "$", right: "$", display: false},
//{left: "\\(", right: "\\)", display: false},
//{left: "\\begin{equation}", right: "\\end{equation}", display: true},
//{left: "\\begin{align}", right: "\\end{align}", display: true},
//{left: "\\begin{alignat}", right: "\\end{alignat}", display: true},
//{left: "\\begin{gather}", right: "\\end{gather}", display: true},
//{left: "\\begin{CD}", right: "\\end{CD}", display: true},
//{left: "\\[", right: "\\]", display: true}
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
{left: "\\(", right: "\\)", display: false},
{left: "\\[", right: "\\]", display: true}
],
// • rendering keys, e.g.:
throwOnError : false
});
});
</script>