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