1.0.2 • Published 11 months ago

vitepress-plugin-markdown-define v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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)
    },
  },
})
1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago