This package has been deprecated

Author message:

No longer supported. Instead use md-to-bemjson

md-2-bemjson

0.2.0 • Public • Published

md-2-bemjson

Converts .md files to .bemjson.js files.

NPM Status Travis Status Coverage Status Dependency Status Greenkeeper badge

Requirements

Install

$ npm install md-2-bemjson

Usage

const toBemjson = require('md-2-bemjson');
const bemjson = toBemjson.convertSync('# Hello world');
 
console.log(JSON.parse(bemjson));

Yields:

{
    "block": "documentation",
    "content": {
        "block": "paragraph",
        "content": "#hello world"
    }
}

API

toBemjson.convertSync(md[, options])

options

All options are passed to remark-bemjson.

License

Code and documentation copyright 2017 YANDEX LLC. Code released under the Mozilla Public License 2.0.

Readme

Keywords

Package Sidebar

Install

npm i md-2-bemjson

Weekly Downloads

0

Version

0.2.0

License

MPL-2.0

Last publish

Collaborators

  • birhoff