0.1.4 • Published 4 years ago

@fish-kit/md-tools-plugin-highlight-react v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

md-tools-plugin-highlight-react

Markdown 代码块高亮

用法

  1. 安装依赖:
npm i -D md-tools-plugin-highlight-react
  1. 在主题index配置 plugins 中增加md-tools-plugin-highlight-react.

    module.exports = {
      plugins: ["md-tools-plugin-highlight-react"]
    };
  2. 在主题的模板文件中的使用方法:

    <div>{utils.toReactComponent(pageData.highlightedCode)}</div>

API

License

MIT