Debian Codegraph @

docs/layouts/_markup/render-passthrough.html

raw
1 {{- $opts := dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") }}
2 {{- with try (transform.ToMath .Inner $opts) }}
3 {{- with .Err }}
4 {{- errorf "Unable to render mathematical markup to HTML using the transform.ToMath function. The KaTeX display engine threw the following error: %s: see %s." . $.Position }}
5 {{- else }}
6 {{- .Value }}
7 {{- $.Page.Store.Set "hasMath" true }}
8 {{- end }}
9 {{- end -}}