2020-04-11 18:05:43 +00:00
|
|
|
{{- if not (.Page.Scratch.Get "katex") -}}
|
2024-01-10 11:40:24 +00:00
|
|
|
<!-- Include katex only first time -->
|
2020-04-11 18:05:43 +00:00
|
|
|
<link rel="stylesheet" href="{{ "katex/katex.min.css" | relURL }}" />
|
2020-03-23 19:40:53 +00:00
|
|
|
<script defer src="{{ "katex/katex.min.js" | relURL }}"></script>
|
|
|
|
<script defer src="{{ "katex/auto-render.min.js" | relURL }}" onload="renderMathInElement(document.body);"></script>
|
2020-04-11 18:05:43 +00:00
|
|
|
{{- .Page.Scratch.Set "katex" true -}}
|
|
|
|
{{- end -}}
|
2019-08-22 21:59:51 +00:00
|
|
|
|
2020-04-11 18:05:43 +00:00
|
|
|
<span {{- with .Get "class" }} class="{{ . }}"{{ end }}>
|
2024-02-17 17:57:02 +00:00
|
|
|
{{ with .Get "display" }}\[{{else}}\({{end}}
|
2024-10-04 09:29:44 +00:00
|
|
|
{{- .InnerDeindent -}}
|
2024-02-17 17:57:02 +00:00
|
|
|
{{ with .Get "display" }}\]{{else}}\){{end}}
|
2020-01-13 18:05:54 +00:00
|
|
|
</span>
|