md-tools-plugin-highlight-react

1.0.1 • Public • Published

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"]
};
  1. 在主题的模板文件中的使用方法:
<div>{utils.toReactComponent(pageData.highlightedCode)}</div>

API

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i md-tools-plugin-highlight-react

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.53 kB

    Total Files

    4

    Last publish

    Collaborators

    • guxingke201
    • mraiguo
    • nicky_nd