1.0.2 • Published 11 months ago
vitepress-plugin-markdown-define v1.0.2
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)
},
},
})