github / accessibility-alt-text-bot

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

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

Closed kendallgassner closed 1 year ago

kendallgassner commented 1 year 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 1 year 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 1 year ago

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

kendallgassner commented 1 year ago

Checking in node_modules as advised on github action documentation.