/vuepress-plugin-markdown-define

Vuepress plugin for define variables in markdown

Primary LanguageJavaScriptMIT LicenseMIT

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