Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-medium-zoom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { path } = require('@vuepress/shared-utils')

module.exports = (options, context) => ({
define: {
SELECTOR: options.selector || '.theme-default-content img',
SELECTOR: options.selector || '.theme-default-content :not(a) > img',
OPTIONS: options.options
},
clientRootMixin: path.resolve(__dirname, 'clientRootMixin.js')
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/plugin/official/plugin-medium-zoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next

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

Expand All @@ -46,7 +46,7 @@ module.exports = {
### selector

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

Note that `.theme-default-content` is the class name of [`<Content />`](../../guide/using-vue.md#content) component in default theme.

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/zh/plugin/official/plugin-medium-zoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next

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

Expand All @@ -45,10 +45,10 @@ module.exports = {

## 选项

### selector
### selector

- 类型: `string`
- 默认值: `.theme-default-content img`
- 默认值: `.theme-default-content :not(a) > img`

值得注意的是, `.theme-default-content` 是默认主题添加给 [`<Content />`](../../guide/using-vue.md#content) 组件的 class name。

Expand Down