Skip to content

double-great/remark-lint-alt-text

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

remark-lint-alt-text Build Status

A remark-lint plugin that finds unhelpful or missing image alt text.

It uses the rules definition from https://github.com/double-great/alt-text.

Install

npm install --save-dev remark-cli @double-great/remark-lint-alt-text

Add the remark-lint-alt-text plugin to your remark configuration:

"remarkConfig": {
  "plugins": [
    "@double-great/remark-lint-alt-text"
  ]
},

You can also customize suggestions:

"remarkConfig": {
  "plugins": [
    ["@double-great/remark-lint-alt-text", [1, { "empty-alt-text": false }]],
  ]
},