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

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

Vuepress plugin for define variables in markdown
https://github.com/justforuse/vuepress-plugin-markdown-define

Last synced: 8 months ago
JSON representation

Vuepress plugin for define variables in markdown

Awesome Lists containing this project

README

          

# Vuepress-plugin-markdown-define

## Install

```
npm install vuepress-plugin-markdown-define
```

## Usage

in `config.js`

```js
const CONSTS = {
__VERSION__: require('../../package.json').version
}

module.exports = {
// ...
plugins: [
[
'markdown-define',
CONSTS
]
]
}

```

Your `.md` file source code:

```md
Current version is __VERSION__
```

will rendered as:

```md
Current version is 1.0.0
```