README.md (view raw)
1GitHub Markup
2=============
3
4We use this library on GitHub when rendering you README or any other
5rich text file.
6
7Want to add your own? Check `lib/github/markups.rb` for the definition
8file.
9
10Even if you don't know Ruby we welcome you with open arms. Check
11`lib/github/commands/asciidoc2html` or `lib/github/commands/rest2html`
12for examples of Python implementations.
13
14
15Usage
16-----
17
18 require 'github/markup'
19 GitHub::Markup.render('README.markdown', "* One\n* Two")
20
21Or, more realistically:
22
23 require 'github/markup'
24 GitHub::Markup.render(file, File.read(file))
25
26
27Authors
28-------
29
30Chris Wanstrath and all of you