Closed fragosti closed 4 years ago
👋 Hi @fragosti !
There currently is no way to disable that feature, but I agree it could be useful!*
The closest I can think of might be to set your selector config to img:not([width])
, but that would disable this plugin entirely for those images.
* I'll add it to my list of features for the next release (or it would make a great first issue for someone to contribute to the project 😄)
What actually ended up working pretty well was to use the style
property instead, although it feels a bit hacky.
I sometimes use mark-up like
But this plugin replaces the width specified in the markup. Is it possible to disable this? Maybe if the original mark-up specifies both it shouldn't be required to derive it from the file (or better, allow the markup to only specify one, determine the ratio from the file, and use that to derive the other value)