Skip to content

Commit 832bd6f

Browse files
committed
fix(theme-default): allow direct img children to be zoomable (close #84)
1 parent 4cc5870 commit 832bd6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vuepress/theme-default/src/node/resolveMediumZoomPluginOptions.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export const resolveMediumZoomPluginOptions = (
1212
}
1313

1414
return {
15-
selector: '.theme-default-content :not(a) > img',
15+
selector:
16+
'.theme-default-content > img, .theme-default-content :not(a) > img',
1617
zoomOptions: {},
1718
delay: 300,
1819
}

0 commit comments

Comments
 (0)