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

This commit is contained in:
Robert Kaussow 2022-05-17 14:45:25 +02:00 committed by GitHub
parent 2607199889
commit f576e4ca0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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