all repos — markup @ dc07a3dd03c01c7aa1e81c9aff9ef4576755afea

The code we use to render README.your_favorite_markup

add creole support using creole gem
minad dmendler@wurzelteiler.de
Tue, 06 Jul 2010 13:52:20 +0200
commit

dc07a3dd03c01c7aa1e81c9aff9ef4576755afea

parent

662b4b4ba9f1d61b5638bae21824275f61ad8529

4 files changed, 16 insertions(+), 0 deletions(-)

jump to
M README.mdREADME.md

@@ -14,6 +14,7 @@ * [.markdown](http://daringfireball.net/projects/markdown/) -- `gem install rdiscount`

* [.textile](http://www.textism.com/tools/textile/) -- `gem install RedCloth` * [.rdoc](http://rdoc.sourceforge.net/) * [.org](http://orgmode.org/) -- `gem install org-ruby` +* [.creole](http://wikicreole.org/) -- `gem install creole` * [.rst](http://docutils.sourceforge.net/rst.html) -- `easy_install docutils` * [.asciidoc](http://www.methods.co.nz/asciidoc/) -- `brew install asciidoc` * [.pod](http://search.cpan.org/dist/perl/pod/perlpod.pod) -- `Pod::Simple::HTML`
M lib/github/markups.rblib/github/markups.rb

@@ -14,6 +14,10 @@ markup('org-ruby', /org/) do |content|

Orgmode::Parser.new(content).to_html end +markup(:creole, /creole/) do |content| + Creole.creolize(content) +end + command(:rest2html, /re?st(\.txt)?/) command('asciidoc -s --backend=xhtml11 -o - -', /asciidoc/)
A test/markups/README.creole

@@ -0,0 +1,9 @@

+== Header == + +* One +* Two + +{{{ + Preformatted + text +}}}
A test/markups/README.creole.html

@@ -0,0 +1,2 @@

+<h2>Header</h2><ul><li>One</li><li>Two</li></ul><pre> Preformatted + text</pre>