Skip to content

Commit

Permalink
add creole support using creole gem
Browse files Browse the repository at this point in the history
  • Loading branch information
minad authored and defunkt committed Jul 7, 2010
1 parent 662b4b4 commit dc07a3d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ you wish to run the library.
* [.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`
Expand Down
4 changes: 4 additions & 0 deletions lib/github/markups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
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/)
Expand Down
9 changes: 9 additions & 0 deletions test/markups/README.creole
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
== Header ==

* One
* Two
{{{
Preformatted
text
}}}
2 changes: 2 additions & 0 deletions test/markups/README.creole.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h2>Header</h2><ul><li>One</li><li>Two</li></ul><pre> Preformatted
text</pre>

0 comments on commit dc07a3d

Please sign in to comment.