fix: avoid to apply css class katex twice (#357)

This commit is contained in:
Robert Kaussow 2022-02-26 16:28:10 +01:00 committed by GitHub
parent e1edb90407
commit 9d61f9ddf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
{{ end }}
<!-- prettier-ignore-end -->
<span class="gdoc-katex katex{{ with .Get "class" }}{{ . }}{{ end }}">
<span class="gdoc-katex {{ with .Get "class" }}{{ . }}{{ end }}">
{{ cond (in .Params "display") "\\[" "\\(" -}}
{{- trim .Inner "\n" -}}
{{- cond (in .Params "display") "\\]" "\\)" }}