vuepress-plugin-markdown-define
v1.0.3
Published
define variables in markdown file for vuepress
Downloads
3
Readme
Vuepress-plugin-markdown-define
Install
npm install vuepress-plugin-markdown-define
Usage
in config.js
const CONSTS = {
__VERSION__: require('../../package.json').version
}
module.exports = {
// ...
plugins: [
[
'markdown-define',
CONSTS
]
]
}
Your .md
file source code:
Current version is __VERSION__
will rendered as:
Current version is 1.0.0