Skip to content

Files

Latest commit

author
顾珠彬
Jul 11, 2017
8a72c5d · Jul 11, 2017

History

History
25 lines (18 loc) · 414 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 414 Bytes

node-cmark

fork from https://github.com/thomasjo/node-cmark replace node-gyp implements to cmake-js

dependencies

npm install -g cmake-js

install

npm install --save node-cmark

usage

const cmark = require('node-cmark');
const markdown = '# h1 title';
console.log(cmark.markdown2html(markdown));//print <h1>h1 title</h1>