gulp-inline-css
gulp-inline-css copied to clipboard
Alt attribute being stripped
trafficstars
For img when an image is decorative, the best practise is to have an empty alt description like so:
<img width="10" height="40" src="../img.src" alt=""/>
When the document is generated via Jekyll, I get the output I expect above.
When it is ran through this plugin, it seems to be rewriting the alt tag.
<img width="10" height="40" src="../img.src" alt style="inlined styles">
Which is not the desired outcome.
@mark-making, I have the same issue. I use a lot of plugins and it was hard to investigate that this plugin that shouldn't touch alt attributes, modifies them. Have you found a work-around for this issue besides finding all such attributes with regexp and fixing them back?