Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Markdown Extra <srcsetplugin> custom tag breaks grid layout #25

Open
DenisLanz opened this issue Jun 21, 2020 · 2 comments
Open

Markdown Extra <srcsetplugin> custom tag breaks grid layout #25

DenisLanz opened this issue Jun 21, 2020 · 2 comments
Assignees
Labels

Comments

@DenisLanz
Copy link

DenisLanz commented Jun 21, 2020

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?

@bnomei bnomei self-assigned this Aug 10, 2020
@bnomei
Copy link
Owner

bnomei commented Aug 10, 2020

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 bnomei added the question Further information is requested label Aug 10, 2020
@bnomei
Copy link
Owner

bnomei commented Aug 10, 2020

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 bnomei added FAQ and removed question Further information is requested labels Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants