chin-plugin-unified
Installation
yarn add -D chin chin-plugin-unified
Usage
unified(extension, list|preset)
Just using processor.use()
.
// as listconst md = // as presetconst md =
unified(type, list|options)
Determines parser/compiler(/extension) by type
.
// as listconst md = // as optionsconst md =
type
value | parser | compiler | required in list |
---|---|---|---|
"h2h" |
rehype-parser |
rehype-stringify |
|
"h2m" |
rehype-parser |
remark-stringify |
rehype-remark |
"m2m" |
remark-parser |
remark-stringify |
|
"m2h" |
remark-parser |
rehype-stringify |
remark-rehype |
preset
)
options ( extends setting
plugins
set tolist
parse
options passed to parser.compile
options passed to compiler.
reference
License
MIT (http://opensource.org/licenses/MIT)