vitepress-plugin-markdown-define
v1.0.2
Published
Define and replace variables in markdown file
Downloads
9
Maintainers
Readme
Install
npm install vitepress-plugin-markdown-define -D
How to use
In your config.ts
import useDefinePlugin from 'vitepress-plugin-markdown-define'
const CONSTS = {
__custom_variable__: 'your value'
}
export default defineConfig({
markdown: {
config(md) {
useDefinePlugin(md, CONSTS)
},
},
})