hugo-theme-relearn/layouts/partials/shortcodes/math.html
2023-05-18 14:01:50 +02:00

9 lines
No EOL
243 B
HTML

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