Default built-in plugin for supporting image zooming.
Since this plugin is a built-in plugin, there's no need to manually register it in the config file. You just need to configure it in the mediumZoom field. For example:
import { defineConfig } from '@rspress/core';
export default defineConfig({
mediumZoom: {
selector: '.rspress-doc img',
},
});string.rspress-doc imgCustomize the image selector.
ZoomOptions{}Config items for medium-zoom. Click here for more details on the configuration.