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
29
30
|
{{ $style := resources.Get "katex@0.15.6/katex.min.css" | toCSS | minify | fingerprint }}
{{ $katexjs := resources.Get "katex@0.15.6/katex.min.js" }}
{{ $autorender := resources.Get "katex@0.15.6/contrib/auto-render.min.js" }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<script defer src="{{ $katexjs.Permalink }}"></script>
<script defer src="{{ $autorender.Permalink }}"></script>
<style>
.katex-display { overflow: auto hidden }
.katex-display > .katex > .katex-html > .tag {
position: static;
float: right;
}
.katex { font-size: 1em; }
</style>
<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: '\\[', right: '\\]', display: true}
],
// • rendering keys, e.g.:
throwOnError : false
});
});
</script>
|