kirby3-srcset icon indicating copy to clipboard operation
kirby3-srcset copied to clipboard

Markdown Extra <srcsetplugin> custom tag breaks grid layout

Open DenisLanz opened this issue 5 years ago • 2 comments

I've an issue with the custom tag that will be injected if markdown extra is enabled. This inevitability is an issue when working with css grid as it breaks the layout. Support for custom tags is limited, srcsetplugin is anyway not a valid custom tag without a dash, and it causes issues with css preprocessing and linting when I try to add a display:contents; to it, taking it out of the render path.

What is the purpose of the tag, isn't there a more standardised option or can it be disabled?

DenisLanz avatar Jun 21 '20 12:06 DenisLanz

sorry for the late response...

<srcsetplugin> and </srcsetplugin> should not appear in the frontend code but be removed by the plugin unless i made an error with my markdown extension that handles that. it "should" not collide with markdown and markdown extra.

what is your markdown setup? any config values in that regard? any other plugins that alter markdown?

bnomei avatar Aug 10 '20 19:08 bnomei

the tag is used internally to force the markdown lib to not mess with the style + figure > img elements (or others variants that the plugin supports).

ah... did you change the bnomei.srcset.ratio option to another string? there was an issue in 3.3.4 but it should be gone now.

bnomei avatar Aug 10 '20 19:08 bnomei