extroonie.com/layouts/_default/_markup/render-passthrough.html
Extroonie 68e2c30928
Some checks failed
Check site / build (push) Has been cancelled
feat: initial commit
2026-09-21 12:31:51 -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 -}}