This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

md-plugins-vig

2.0.1 • Public • Published

MD-PLUGINS-VIG

version downloads dependencies

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

See More

md-core

md-highlight

Package Sidebar

Install

npm i md-plugins-vig

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

79.5 kB

Total Files

49

Last publish

Collaborators

  • val.istar.guo