make warning ignorable

This commit is contained in:
Ben Goldsworthy 2025-07-09 23:51:12 +02:00
parent 7210d1c959
commit 728e840dc5
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -66,3 +66,4 @@ markup:
ignoreErrors:
- "missing-cite"
- "size-set-on-non-resizable"

View file

@ -33,7 +33,7 @@
{{- warnf "Requested size %s is more than image width %d (%q)" $width $img.Width $img.File.Path -}}
{{- end -}}
{{- else -}}
{{- warnf "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}}
{{- warnidf "size-set-on-non-resizable" "Size set on non-resizable image of type %s; ignoring" $img.MediaType.SubType -}}
{{- end -}}
{{- end -}}