1.0.0 • Published 2 years ago
vuepress-plugin-markdown-define2 v1.0.0
Vuepress-plugin-markdown-define2
Define variables in markdown for Vuepress 2.
Install
npm install vuepress-plugin-markdown-define2 -D
Usage
in config.js
const MdDefinePlugin = require('vuepress-plugin-markdown-define2')
const CONSTS = {
__VERSION__: require('../../package.json').version
}
module.exports = {
// ...
plugins: [
MdDefinePlugin(CONSTS)
]
}
Your .md
file source code:
Current version is __VERSION__
will rendered as:
Current version is 1.0.0
1.0.0
2 years ago