Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt attribute being stripped #63

Open
mark-making opened this issue Feb 25, 2019 · 1 comment
Open

Alt attribute being stripped #63

mark-making opened this issue Feb 25, 2019 · 1 comment

Comments

@mark-making
Copy link

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.

@max-samusevich
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants