{{- .Page.Store.Set "hasMath" true -}} {{- $id := .Get "id" -}} {{- if not $id }}{{ errorf "equation requires an id: %s" .Position }}{{ end -}} {{- $count := .Page.Store.Get "equationCount" | default 0 -}} {{- $number := add $count 1 -}}{{- .Page.Store.Set "equationCount" $number -}} {{- with .Get "number" }}{{ $number = . }}{{ end -}}
{{ transform.ToMath .Inner (dict "output" "htmlAndMathml" "displayMode" true "strict" "warn") }}
({{ $number }})