Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

hegemonic/github-flavored-markdown

 
 

Repository files navigation

See: github-flavored-markdown

As an npm package:

npm install github-flavored-markdown

And then in your node program:

var ghm = require("github-flavored-markdown")
ghm.parse("I **love** GHM.\n\n#2", "isaacs/npm")
// returns:
// '<p>I <strong>love</strong> GHM.  '+
// '<a href=\'http://github.com/isaacs/npm/issues/#issue/2\'>#2</a></p>'

To get the sha/issue/fork links, pass in a second argument specifying the current project that things should be relative to.

Packages

No packages published

Languages

  • JavaScript 95.6%
  • Ruby 4.4%