extroonie.com/layouts/_default/_markup/render-passthrough.html
Extroonie 4a6f6b2062
Some checks are pending
Check site / build (push) Waiting to run
feat: initial commit
2026-09-19 08:37:03 -07:00

7 lines
320 B
HTML

{{- .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 -}}