simoncramer / grav-plugin-srcset

Grav CMS Plugin to set the srcset and size attribute and make images responsive.
MIT License
3 stars 0 forks source link

plugin stops whole page's Markdown from being rendered into HTML #3

Open skinofthesoul opened 5 years ago

skinofthesoul commented 5 years ago

Hey there, I just installed your plugin since it seems to be exactly what I need. However, when it's activated, any page containing an image in Markdown gets output "as is" into HTML. None of the Markdown gets rendered anymore. The image Markdown seems to be correct? It looks like this:

![alt text](example.jpg?derivatives=320,1280,200&sizes=srcsethelper&derivatives=320,1280,200&sizes=srcsethelper)

Am I doing something wrong? I tried disabling Markdown Extra, and putting blank lines around the image Markdown, but neither made any difference. Any other settings this might be clashing with?

Thank you for your time!

simoncramer commented 5 years ago

Hi! You simply activate and configure the plugin and then it works on all images in your page content. It is not necessary to add any Markdown to the image, simply use ![alt text](example.jpg) on your page and the rest is hopefully happening automatically.

skinofthesoul commented 5 years ago

Hey there, thank you for your reply! Meanwhile I have installed the plugin on another site, and it really does work beautifully out of the box, doing exactly what I need it to. So this problem here seems to be a clash with another plugin, maybe – I'll tinker with it some more and report back when I have found the cause, in case somebody else encounters the same thing.

Thanks again for this excellent plugin!