diff options
author | Robert Kaussow <mail@thegeeklab.de> | 2022-02-26 18:28:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 18:28:10 +0300 |
commit | 9d61f9ddf9fd6a4550933348e016cc4bf9e1c4b2 (patch) | |
tree | 5288dde0d53915b7d8787c1e029cdac114f67238 | |
parent | e1edb904078bc990ace2880f399fb54403cd968a (diff) |
fix: avoid to apply css class katex twice (#357)v0.27.3
-rw-r--r-- | layouts/shortcodes/katex.html | 2 |
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") "\\]" "\\)" }} |