{{- with .Inner -}}
\[ {{ .| htmlEscape | safeHTML }} \]
{{- end -}}
{{- if not (.Page.Store.Get "katex") -}}
{{- /* Include katex only first time */ -}}
{{- /* remove whitespaces */ -}}
{{- with resources.Get "katex.json" | minify -}}
{{- end -}}
{{- .Page.Store.Set "katex" true -}}
{{- end -}}