Commit e3393e3 1 parent 52f421b commit e3393e3 Copy full SHA for e3393e3
File tree 3 files changed +6
-6
lines changed
@vuepress/plugin-medium-zoom
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const { path } = require('@vuepress/shared-utils')
2
2
3
3
module . exports = ( options , context ) => ( {
4
4
define : {
5
- SELECTOR : options . selector || '.theme-default-content img' ,
5
+ SELECTOR : options . selector || '.theme-default-content :not(a) > img' ,
6
6
OPTIONS : options . options
7
7
} ,
8
8
clientRootMixin : path . resolve ( __dirname , 'clientRootMixin.js' )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next
20
20
21
21
``` javascript
22
22
module .exports = {
23
- plugins: [' @vuepress/medium-zoom' ]
23
+ plugins: [' @vuepress/medium-zoom' ]
24
24
}
25
25
```
26
26
@@ -46,7 +46,7 @@ module.exports = {
46
46
### selector
47
47
48
48
- Type: ` string `
49
- - Default: ` .theme-default-content img `
49
+ - Default: ` .theme-default-content :not(a) > img `
50
50
51
51
Note that ` .theme-default-content ` is the class name of [ ` <Content /> ` ] ( ../../guide/using-vue.md#content ) component in default theme.
52
52
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next
22
22
23
23
``` javascript
24
24
module .exports = {
25
- plugins: [' @vuepress/medium-zoom' ]
25
+ plugins: [' @vuepress/medium-zoom' ]
26
26
}
27
27
```
28
28
@@ -45,10 +45,10 @@ module.exports = {
45
45
46
46
## 选项
47
47
48
- ### selector
48
+ ### selector
49
49
50
50
- 类型: ` string `
51
- - 默认值: ` .theme-default-content img `
51
+ - 默认值: ` .theme-default-content :not(a) > img `
52
52
53
53
值得注意的是, ` .theme-default-content ` 是默认主题添加给 [ ` <Content /> ` ] ( ../../guide/using-vue.md#content ) 组件的 class name。
54
54
You can’t perform that action at this time.
0 commit comments