2.0.1 • Published 6 years ago

md-plugins-vig v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-alpha.3

6 years ago

2.0.0-alpha.2

6 years ago

2.0.0-alpha.1

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.1-alpha.7

6 years ago

0.0.1-alpha.6

6 years ago

0.0.1-alpha.5

6 years ago

0.0.1-alpha.4

6 years ago

0.0.1-alpha.3

6 years ago

0.0.1-alpha.2

6 years ago

0.0.1-alpha.1

6 years ago