Socket
Book a DemoInstallSign in
Socket

github-markdown-render

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-markdown-render

Render markdown using the GitHub Markdown API

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
20
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

github-markdown-render Build Status

Render markdown using the GitHub Markdown API

Install

$ npm install --save github-markdown-render

Usage

var githubMarkdownRender = require('github-markdown-render');

githubMarkdownRender('**foo**', function (err, data) {
	console.log(data);
	//=> <p><strong>foo</strong></p>
});

API

githubMarkdownRender(markdown, callback)

markdown

Required
Type: string

Markdown to be rendered.

callback(err, data)

Type: function

data

Type: string

Rendered HTML.

CLI

$ npm install --global github-markdown-render
$ github-markdown-render --help

  Usage
    $ github-markdown-render **foo**
    $ cat readme.md | github-markdown-render

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 16 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts