vitepress-plugin-render
v1.6.0
Published
VitePress plugin for rendering a component from file.
Downloads
318
Readme
VitePress Render
This repository contains the source code for the VitePress Render plugin. This plugin is able to show a component from a file.
🚀 Installation
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);
}
}
// ...
});👀 Usage
::: render
render=../path/to/file.vue
:::