bisheng-plugin-description
v0.1.4
Published
To extract description from Markdown.
Downloads
1,369
Readme
bisheng-plugin-description
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