fix img tooltip
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 2m11s

This commit is contained in:
Paolo Asperti 2024-08-11 17:20:26 +02:00
parent 4931651f29
commit 4ffc667fae
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -20,7 +20,7 @@
{{- $captionWidth = .Width -}} {{- $captionWidth = .Width -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" (.Title | transform.HTMLEscape)) -}} {{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" .Text) -}}
<img <img
{{- range $k, $v := $attributes -}} {{- range $k, $v := $attributes -}}
{{- if $v -}} {{- if $v -}}