md-tools-engine-react

v1.0.1
The React Engine For md-tools
markdown md-tools react

md-tools-engine-react

markdown文件使用md-tools转换后的数据在react下运行需提供的模板,入口文件和路由

用法

  1. 安装依赖:
npm i -D md-tools-engine-react
  1. md-tools.config.js配置engine.
{
  engine: 'md-tools-engine-react',
  ...
}

API

getRoutesPath(tmpDirPath, themeConfig, themePath, configEntryName)

generateEntryFile(tmpDirPath, themeConfig, configTheme, configEntryName, root)

htmlTemplate

License

MIT

npm i md-tools-engine-react

Metadata

  • MIT
  • >=6.0.0
  • pengxing
  • released 5/7/2020

Downloads