mirror of
https://github.com/Extroonie/extroonie.com.git
synced 2026-10-13 01:48:06 -07:00
7 lines
320 B
HTML
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 -}}
|