kirby-deprecated-plugins / kirby-html-minifier

Minify the html output of a site built with Kirby CMS
MIT License
21 stars 1 forks source link

Code child elements break #9

Closed jenstornell closed 6 years ago

jenstornell commented 7 years ago

Unfortunately the @jenstornell html minifier plugin does not have a way to exclude certain tags, only whole pages. Thats no good to me because nearly every page has a code example on it…

Yes, its a Markdown code fence, so its actually a tag nested inside a

 tag. The highlight plugin renders  tags inside this. It is not being ignored by your plugin. :frowning:

I think the problem is that your plugin is ignoring code, pre, and textarea tags, but its not ignoring tags inside those tags.

jenstornell commented 6 years ago

✔️