$ npm install github-markdown-renderRender markdown using the GitHub Markdown API
$ npm install --save github-markdown-render
const fs = require('fs');
const githubMarkdownRender = require('github-markdown-render');
githubMarkdownRender('**foo**').then(data => {
console.log(data);
//=> '<p><strong>foo</strong></p>'
});
fs.createReadStream('readme.md')
.pipe(githubMarkdownRender.stream())
.pipe(fs.createWriteStream('index.html'));
Returns a promise with the rendered HTML.
Required
Type: string
Markdown to be rendered.
Creates a Readable/Writable stream which you can pipe markdown to.
$ npm install --global github-markdown-render
$ github-markdown-render --help
Usage
$ github-markdown-render **foo**
$ cat readme.md | github-markdown-render
MIT © Kevin Mårtensson