Skip to content

basmilius/vitepress-plugin-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
:::

About

A VitePress plugin to render a component from file.

Resources

License

Stars

Watchers

Forks

Sponsor this project