md-core-ddd
v1.0.1
Published
markdown parse core
Downloads
5
Readme
MD-CORE
Install
npm install md-core
Usage
md-core is just a core, need plugins to parse markdown see more: md-plugins-vig.
// costom your md
// md.js
import md from 'md-core';
import { plugins } from 'md-plugins-vig';
export default md()
.use(plugins())
Then import your costom md
import md from './md.js'
md.parse('# header').toHTML();
// -> <h1>header</h1>