diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index d65b533..6642c82 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,8 +1,8 @@ {{ if .Get "src" }}
{{ . | plainify }} - {{- if .Get "caption" -}} -
{{ .Get "caption" }}
- {{- end -}} + {{ if .Get "caption" }} +
{{ .Get "caption" | safeHTML }}
+ {{ end }}
{{ end }}