JavaScript Ruby
Pull request Compare This branch is 1 commit ahead, 1 commit behind isaacs:master.
Latest commit c71f43a Aug 8, 2012 @felixge Don't insert line breaks for '\n'
AFAIK the GitHub readme files are not rendered this way, and it's rather
annoying for how I want to use markdown (limit my line length to 80
chars).
Permalink
Failed to load latest commit information.
_layouts old Aug 19, 2010
images
scripts
stylesheets
.gitignore ignore .DS_Store Apr 20, 2009
README.md
_config.yml
code.rb
index.md
package.json
preview.md
sample_content.html update url Apr 10, 2009

README.md

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.