@vuepress/plugin-medium-zoom

medium-zoom plugin

Install

yarn add -D @vuepress/plugin-medium-zoom
# OR npm install -D @vuepress/plugin-medium-zoom

Usage

Simple:

module.exports = {
  plugins: ['@vuepress/medium-zoom']
}

With options:

module.exports = {
  plugins: {
    '@vuepress/medium-zoom': {
      selector: 'img.zoom-custom-imgs',
      // medium-zoom options here
      // See: https://github.com/francoischalifour/medium-zoom#options
      options: {
        margin: 16
      }
    }
  }
}

Options

selector

  • Type: string
  • Default: .theme-default-content :not(a) > img

Note that .theme-default-content is the class name of <Content /> component in default theme.

options

  • Type: object
  • Default: undefined

Options for medium-zoom.