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
- Host: GitHub
- URL: https://github.com/justforuse/vuepress-plugin-markdown-define
- Owner: justforuse
- License: mit
- Created: 2022-05-18T13:50:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T09:37:58.000Z (over 3 years ago)
- Last Synced: 2025-05-13T11:48:14.125Z (10 months ago)
- Language: JavaScript
- Homepage: https://vuepress-plugin-markdown-define.netlify.app/
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```