Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add srcset to whitelist of img tags #156

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Add srcset to whitelist of img tags #156

merged 1 commit into from
Sep 30, 2016

Conversation

ejtttje
Copy link
Contributor

@ejtttje ejtttje commented Sep 29, 2016

This allows 'retina' images to be embedded at a reasonable scale without having to do annoying things like hardcode a width value. My motivation is for gitlab markdown, where I want the documentation to inline high-res images straight out of the repository, but at the correct display size.

More information: http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good-thing/

Browser support: http://caniuse.com/#search=srcset

This allows 'retina' images to be embedded at a reasonable scale without having to do annoying things like hardcode a width value.  My motivation is for gitlab markdown, where I want the documentation to inline high-res images straight out of the repository, but at the correct display size.

More information: http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good-thing/

Browser support: http://caniuse.com/#search=srcset
@rgrove rgrove merged commit 61f9140 into rgrove:master Sep 30, 2016
@rgrove
Copy link
Owner

rgrove commented Sep 30, 2016

Released in 4.4.0. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants