bisheng-plugin-preview
Generate a preview for Markdown files in bisheng.
Usage
Install:
npm i --save bisheng-plugin-preview
Add 'bisheng-plugin-preview' to bisehng.config.js
's plugins.
moduleexports = plugins: 'bisheng-plugin-preview';
In Markdown of demo
directory:
title: ... ...
This is description.
Add preview and highlightedCode to markdown data
import Input from 'co-ui'; ReactDOM;
Add highlightedStyle to markdown data
Add style to markdown data
In template:
const preview highlightedCode highlightedStyle style = pageData; // use preview<div> </div> // use highlightedCode<div> propsutils</div> // use highlightedStyle<pre> <code = /></pre> // use style <style = />
Liscense
MIT