remark-bemjson
Compile markdown to BEMJSON with remark.
Requirements
Install
$ npm install remark-bemjson
Usage
const remark = ;const bemjson = ; const file = ; console;
Yields:
API
remark.use(bemjson[, options])
options
commonJS
string exportType - determinate how to export bemjson. Default: Value | Description |
---|---|
commonJS |
Exports to CJS. |
modules |
Exports to ES6 modules. Optional combines with exportName . |
umd |
Exports to UMD with umd package. Requires exportName. |
YModules |
Exports to YModules. Requires exportName. |
no export |
Don't do any export. Just plain JSON.stringify . |
modules
, umd
or YModules
.
string exportName - export bemjson with given name when use false
don't generate export. Default: true
boolean export - if Signature. Option passed to mdast-util-to-bemjson
.
Function augment - callback called on every node. License
Code and documentation copyright 2017 YANDEX LLC. Code released under the Mozilla Public License 2.0.