bisheng-plugin-description

0.1.4 • Public • Published

bisheng-plugin-description

npm package NPM downloads Dependency Status

To extract description from Markdown.

Usage

Install:

npm i --save bisheng-plugin-description

Add 'bisheng-plugin-description' to bisehng.config.js's plugins.

module.exports = {
  plugins: ['bisheng-plugin-description'],
};

In Markdown:

---
title: ...
...
---
 
This is description.
 
---
 
This is main content.

In template:

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

Liscense

MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i bisheng-plugin-description

    Weekly Downloads

    339

    Version

    0.1.4

    License

    MIT

    Last publish

    Collaborators

    • benjycui