Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@thegeeklab.de>2022-02-26 18:28:10 +0300
committerGitHub <noreply@github.com>2022-02-26 18:28:10 +0300
commit9d61f9ddf9fd6a4550933348e016cc4bf9e1c4b2 (patch)
tree5288dde0d53915b7d8787c1e029cdac114f67238
parente1edb904078bc990ace2880f399fb54403cd968a (diff)
fix: avoid to apply css class katex twice (#357)v0.27.3
-rw-r--r--layouts/shortcodes/katex.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html
index 3ab6b2f..b4bc605 100644
--- a/layouts/shortcodes/katex.html
+++ b/layouts/shortcodes/katex.html
@@ -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") "\\]" "\\)" }}