docsify icon indicating copy to clipboard operation
docsify copied to clipboard

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

Open mnasyrov opened this issue 7 years ago • 1 comments

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.

mnasyrov avatar Nov 02 '18 18:11 mnasyrov

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.

trusktr avatar Jun 21 '20 07:06 trusktr