-
I know it is now possible to do a style check of ALT text, but I'm hoping to have a warning when there is an image (in markdown) that has an empty or missing ALT text field. So would result in an warning |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Probably better handled by a tool like Markdownlint https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md045---images-should-have-alternate-text-alt-text |
Beta Was this translation helpful? Give feedback.
-
If you use extends: existence
message: "'%s' does not have an alt text."
level: warning
scope: raw
raw:
- '!\[\]\(.+\)' should work. |
Beta Was this translation helpful? Give feedback.
If you use
scope: raw
you can write rules that target the underlying raw markup. So, something likeshould work.