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

zoom-image plugin: Add support 'data-zoom-src' attribute of 'medium-zoom' #682

Open
mnasyrov opened this issue Nov 2, 2018 · 1 comment

Comments

@mnasyrov
Copy link

mnasyrov commented Nov 2, 2018

Enhancement request.

medium-zoom library can handle data-zoom-src attribute of images which allows to specify a HD image which will be displayed when a zoom is opened (docs).

Please add a some configuration option for an image in Docsify to pass the attribute to 'medium-zoom' library. It might be something like :zoom-src.

@trusktr
Copy link
Member

trusktr commented Jun 21, 2020

Would the syntax be [link](/demo.md ':data-zoom-src=image-hd.jpg')? Note, I used data-zoom-src so that it is clearly mapping to the data-zoom-src attribute.

I think maybe we can also think about how to more generically pass any attributes. F.e. foo-bar or data-foo-bar, data-lorem-ipsum, etc, if we're not already doing that.

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

No branches or pull requests

3 participants