Proposed Solution
Implement a CI check that validates Markdown files for the presence of alt text in both Markdown image syntax ![]() and HTML <img> tags.
Requirements
- Scan Scope: All Markdown files under
content/en/.
- Validation Rules:
- Fail if an image tag is empty:
.
- Fail if an
<img> tag lacks an alt attribute.
- (Optional) Fail if
alt text is generic (e.g., "image", "screenshot", "placeholder").
- Exemptions: Allow a specific override if an image is purely decorative (e.g.,
alt=""), though this should be rare for blog content.
Implementation Ideas
- Markdown Linting: Use
markdownlint with a custom rule.
- Custom Script: A Python or Go script that parses the AST of the Markdown files.
- Vale: Integrate a rule into our existing Vale configuration to check for accessibility standards in image descriptions.
Impact
- SEO: Better indexation in Google Image Search.
/area accessibility
/area seo
/kind feature
Proposed Solution
Implement a CI check that validates Markdown files for the presence of
alttext in both Markdown image syntax![]()and HTML<img>tags.Requirements
content/en/..<img>tag lacks analtattribute.alttext is generic (e.g., "image", "screenshot", "placeholder").alt=""), though this should be rare for blog content.Implementation Ideas
markdownlintwith a custom rule.Impact
/area accessibility
/area seo
/kind feature