Skip to content

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

Description

@mnasyrov

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.

Activity

  1. trusktr commented on Jun 21, 2020

    @trusktr
    Member

    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.

  2. added this to the 5.x milestone on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions