extroonie.com/layouts/_default/_markup/render-passthrough.html

8 lines
320 B
HTML
Raw Normal View History

2026-09-19 08:37:03 -07:00
{{- .Page.Store.Set "hasMath" true -}}
{{- $math := transform.ToMath .Inner (dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") "strict" "warn") -}}
{{- if eq .Type "block" -}}
<div class="math-display" tabindex="0" aria-label="Mathematical equation">{{ $math }}</div>
{{- else -}}
{{ $math }}
{{- end -}}