rmarkdown icon indicating copy to clipboard operation
rmarkdown copied to clipboard

[FR] Raise on suspicious alt text

Open r-leyshon opened this issue 2 years ago • 0 comments

Documents rendered with inappropriate alt text for images and charts result in accessibility issues for screen reader users. The approach taken with accessrmd. It could be best to raise warnings on knit if any image alt text were equal to the following:

  • [ ] no alt attribute value
  • [ ] 'nbsp'
  • [ ] 'spacer'
  • [ ] alt attribute is the same as src attribute value

Additionally, English, German & Korean language values have associated character limits for alt text. Please see the accessrmd implementation.

Further reading

r-leyshon avatar Jun 10 '22 08:06 r-leyshon