Chomp trailing newline in shortcodes.

This commit is contained in:
Fredrik Jonsson 2025-04-11 18:31:55 +02:00
commit 5bc5ce9a58

View file

@ -91,4 +91,4 @@
{{ with $link }}<a class="image-link" href="{{ . }}">{{ end -}}
<img class="image{{ with $class }} {{ . }}{{ end }}" src="{{ $src }}" loading="lazy"{{ with $srcsetw }} srcset="{{ delimit . ", " }}"{{ end }}{{ if isset .Params "alt" }} alt="{{ $alt }}"{{ end }}{{ with $width }} width="{{ . }}"{{ end }}{{ with $height }} height="{{ . }}"{{ end }}>
{{- if $link }}</a>{{ end }}
{{- if $link }}</a>{{ end -}}