github / accessibility-alt-text-bot

An action to remind users to add alt text on Issues, Pull Requests, and Discussions
MIT License
74 stars 13 forks source link

Use AST parser to validate alt text - markdown-lint #33

Closed kendallgassner closed 11 months ago

kendallgassner commented 11 months ago

What

Closes #30

I updated the alt-text-bot to use an AST (markdown-lint) to parse images for bad alt text. Using an AST allows us to ignore any images defined in code blocks.

Why is this cool

kendallgassner commented 11 months ago

Proof of concept run: https://github.com/khiga8/link-checker/issues/9

@khiga8 ... i had to check in node_modules..... but it works

khiga8 commented 11 months ago

Eeep sorry I didn't get to review this today, I'll take a look first thing tomorrow!

kendallgassner commented 11 months ago

Checking in node_modules as advised on github action documentation.