fix: fix extra space after katex shortcode (#244)

This commit is contained in:
Robert Kaussow 2022-05-17 14:42:08 +02:00 committed by GitHub
parent 84517d2539
commit 015b99a3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -13,5 +13,6 @@
<span class="gblog-katex {{ with .Get "class" }}{{ . }}{{ end }}">
{{ cond (in .Params "display") "\\[" "\\(" -}}
{{- trim .Inner "\n" -}}
{{- cond (in .Params "display") "\\]" "\\)" }}
{{- cond (in .Params "display") "\\]" "\\)" -}}
</span>
{{- /* Drop trailing newlines */ -}}