hugo-theme-relearn/layouts/partials/shortcodes/math.html
2022-07-02 14:00:23 +02:00

9 lines
No EOL
252 B
HTML

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