We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
medium-zoom Plugin isn't functional if base in config.ts is set to a sub path like base: '/bar/'.
base
base: '/bar/'
![myimage](/images/myimage.jpg)
![myimage](/bar/images/myimage.jpg)
<img :src="$withBase('/images/myimage.jpg')" alt="">
medium-zoom Plugin should be functional together with $withBase, means when clicking on image with option iii above the image should be zoomed.
The text was updated successfully, but these errors were encountered:
832bd6f
It's not related to the base.
The reason is the medium-zoom selector was set to .theme-default-content :not(a) > img
.theme-default-content :not(a) > img
However, using <img> tag directly in markdown will result in .theme-default-content > img.
<img>
.theme-default-content > img
Sorry, something went wrong.
Shouldn't the first css-child selector within your commit 832bd6f be omitted? Correct selector to:
selector: '.theme-default-content img, .theme-default-content :not(a) > img',
Thanks a lot for your great contribution to vuepress-next.
@nicpitsch If so, the second selector will have no effects
No branches or pull requests
Bug report
Description
medium-zoom Plugin isn't functional if
base
in config.ts is set to a sub path likebase: '/bar/'
.Steps to reproduce
base: '/bar/'
in config.ts.![myimage](/images/myimage.jpg)
→ image doesn't display, as expected.![myimage](/bar/images/myimage.jpg)
→ image displays and medium-zoom is functional, but we have 'hardcoded' the relative path.<img :src="$withBase('/images/myimage.jpg')" alt="">
→ image displays but medium-zoom is not functional, that's the issue.Expected behavior
medium-zoom Plugin should be functional together with $withBase, means when clicking on image with option iii above the image should be zoomed.
Environment info
The text was updated successfully, but these errors were encountered: