md-tools-plugin-description

1.0.1 • Public • Published

md-tools-plugin-description

处理文档中meta下的以“---”开头的描述文本

用法

  1. 安装依赖:
npm i -D md-tools-plugin-description
  1. 在主题index配置 plugins 中增加md-tools-plugin-description.
module.exports = {
  plugins: ["md-tools-plugin-description"]
};
  1. 在主题的模板文件中的使用方法:
<div>{utils.toReactComponent(pageData.description)}</div>

API

License

MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i md-tools-plugin-description

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • guxingke201
    • mraiguo
    • nicky_nd