MD-PLUGINS-VIG
Install
npm install md-plugins-vig
Usage
Default config
// md.js
import md from 'md-core'
import { vigMdPlugins } from 'md-plugins-vig'
export default md().use(vigMdPlugins())
and then
import md from './md.js'
md.parse('# title').toHTML()
// => <h1>title</h1>
Custom config
You can also chose what plugin you want. The configuration in the case is the same as the default configuration. The order of reference of the plug-in may affect the priority and efficiency of parsing.
import md from 'md-core';
import {
atxHeader, setextHeader,
hr, list, blockquote, table, code, paragraph,
hyperlink, image, autolink,
inlineCode, inlineBold, inlineItalics,
coseLineCode, html, br,
} from 'md-plugins-vig';
export default md()
.use(coseLineCode())
.use(list())
.use(code())
.use(atxHeader())
.use(setextHeader())
.use(hr())
.use(blockquote())
.use(table())
.use(paragraph())
.use(inlineCode())
.use(inlineBold())
.use(inlineItalics())
.use(hyperlink())
.use(image())
.use(autolink())
.use(html())
.use(br())
Support
- code
- coseLineCode
- atxHeader
- setexHeader
- list
- blockquote
- table
- hr
- paragraph
- escaped
- inlineCode
- inlineBold
- inlineItalics
- hyperlink
- image
- autolink
- html