aboutsummaryrefslogtreecommitdiff
path: root/layouts/_markup/render-passthrough.html
blob: 4e4e7795cf5564879247f4b6430e28285f256301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{- $options := dict
  "displayMode" (eq .Type "block")
  "output" "mathml"
  "strict" "error"
  "throwOnError" true
-}}
{{- with try (transform.ToMath .Inner $options) -}}
  {{- with .Err -}}
    {{- errorf "Unable to render mathematical markup at %s: %s" $.Position . -}}
  {{- else -}}
    {{- .Value -}}
  {{- end -}}
{{- end -}}