mdast-util-to-bemjson
Transforms MDAST tree to bemjson regarding to rules.
Requirements
Install
$ npm install mdast-util-to-bemjson
Usage
const unified = ;const markdown = ;const toBemjson = ; const mdast = ;const bjson = ; console;
Yields:
API
toBemjson(mdastTree[, options])
options
- Function augment — callback called on every node.
augment(bemNode):bemNode
. Important: Must return bemNode.
bemNode
- representation of bem entity (block, elem, mod, props)
License
Code and documentation copyright 2017 YANDEX LLC. Code released under the Mozilla Public License 2.0.