1.0.3 • Published 2 years ago

vuepress-plugin-markdown-define v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
1.0.3

2 years ago

1.0.2

2 years ago