I’m using separate subpages to generate image galleries. The galleries are then used on the parent page in a textarea using a KirgyTag, something like:
(gallery: galleryname)
Using Kirby 3.6, I’m using the picture tag to use webp images like so in the gallery snippet:
<figure>
<picture>
<source srcset="http://domain.name/path/image.webp" type="image/webp">
<source srcset="http://domain.name/path/image.jpg" type="image/jpeg">
<img src="http://domain.name/path/image.jpg" width="600" height="600" alt="image alt text" loading="lazy">
</source> <!-- closing tag -->
</source> <!-- closing tag -->
</picture>
<figcaption>Some caption</figcaption>
</figure>
Because this code, obviously, works as expected elsewhere I assume Parsedown adds these closing tags when using the KirbyTag? Anyway, we end up with non validating html: Error: Stray end tag source.
Hm, I can’t really reproduce your issue, in my test in Firefox it renders fine. I first thought that it might have to so with you calling kt()/kti() within the snippet. Maybe test if removing those method fixes the issues.
No, it didn’t. Mind you I’m looking at the page source so I’m not inspecting the element. I’m pasting the page source in the html-validater just before going live as a last check.
Inspecting the element doesn’t show the closing tags, I guess it gives a ‘corrected’ view?
So, this might be a non issue?