This repository contains the source code for the VitePress Render plugin. This plugin is able to show a component from a file.
To install the plugin, add the vitepress-plugin-render
package to your project using pnpm install vitepress-plugin-render
and add the following to your VitePress config:
import renderPlugin from 'vitepress-plugin-render';
export default defineConfig({
// ...
markdown: {
config(md) {
md.use(renderPlugin);
}
}
6304
// ...
});
::: render
render=../path/to/file.vue
:::