An open API service indexing awesome lists of open source software.

https://github.com/justforuse/vitepress-plugin-markdown-define


https://github.com/justforuse/vitepress-plugin-markdown-define

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          




vitepress-plugin-markdown-define


Doc for vitepress-plugin-markdown-define.


npm

## Install

```sh
npm install vitepress-plugin-markdown-define -D
```

## How to use

In your `config.ts`

```ts
import useDefinePlugin from 'vitepress-plugin-markdown-define'

const CONSTS = {
__custom_variable__: 'your value'
}

export default defineConfig({
markdown: {
config(md) {
useDefinePlugin(md, CONSTS)
},
},
})
```