culinary.kemonine.info/themes/hugo-theme-relearn/layouts/partials/shortcodes/math.html
2022-12-03 10:27:03 -05:00

9 lines
248 B
HTML

{{- $context := .context }}
{{- $content := .content }}
{{- $align := .align | default "center" }}
{{- with $context }}
<span class="math align-{{ $align }}">
{{- $content | safeHTML -}}
</span>
{{- .Page.Store.Set "hasMathJax" true }}
{{- end }}