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

Package Sidebar

Install

npm i bisheng-plugin-description

Weekly Downloads

321

Version

0.1.4

License

MIT

Last publish

Collaborators

  • benjycui