
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
plugin-image-zoom
Advanced tools
This plugin uses the [`medium-zoom`](https://github.com/francoischalifour/medium-zoom) library to allow for zoom in/out on images in your documentation.
This plugin uses the medium-zoom
library to allow for zoom in/out on images in your documentation.
docusaurus.config.js
, like this: plugins: [
'plugin-image-zoom'
],
docusaurus.config.js
, like this: themeConfig: {
imageZoom: {
// CSS selector to apply the plugin to, defaults to '.markdown img'
selector: '.markdown img',
// Optional medium-zoom options
// see: https://www.npmjs.com/package/medium-zoom#options
options: {
margin: 24,
background: '#BADA55',
scrollOffset: 0,
container: '#zoom-container',
template: '#zoom-template',
},
},
},
If you want to exclude certain images from using the zoom, then you'll need to apply a special tag to the image in your markdown and then use the imageZoom.selector
option in themeConfig
to exclude that tag.
For example, in your markdown you could wrap the image in an <em>
tag, as such:
click on the __ button...
Then, exclude images inside an <em>
tag, as such:
themeConfig: {
imageZoom: {
selector: '.markdown :not(em) > img',
},
},
plugin-image-zoom
in actionCheck out the FlexIt Analytics Docs website, built 100% with Docusaurus, to see this plugin in action.
This plugin uses the medium-zoom plugin, so you can refer to the medium-zoom docs for configuration settings. One common configuration is Using a Custom Viewport. The zoom is by default rendered in the window viewport. You can also render your image in any element of the DOM, or any custom coordinates with the container option.
FAQs
This plugin uses the [`medium-zoom`](https://github.com/francoischalifour/medium-zoom) library to allow for zoom in/out on images in your documentation.
The npm package plugin-image-zoom receives a total of 0 weekly downloads. As such, plugin-image-zoom popularity was classified as not popular.
We found that plugin-image-zoom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.