add creole support using creole gem
minad dmendler@wurzelteiler.de
Tue, 06 Jul 2010 13:52:20 +0200
4 files changed,
16 insertions(+),
0 deletions(-)
M
README.md
→
README.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.rb
→
lib/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>