Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-13 02:20:33 +02:00
parent ea05b39ddf
commit b5c0819bfa
3 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<img src="{{ .Get "src" | relURL }}"
{{- if or (.Get "alt") (.Get "caption") }} alt="{{ with .Get "alt" }}{{ replace . "'" "&#39;" }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
/> <!-- Closing img tag -->
> <!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
<figcaption>