all repos — markup @ 81e4ad671da71e3364103bc3f264938d7b50c1b5

The code we use to render README.your_favorite_markup

gettin' fancy
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 19:00:55 -0700
commit

81e4ad671da71e3364103bc3f264938d7b50c1b5

parent

b29b70118618a7f1a67567fd4ba3331fc3e26331

2 files changed, 7 insertions(+), 8 deletions(-)

jump to
M lib/github/markup.rblib/github/markup.rb

@@ -27,6 +27,6 @@ renderer(filename)[content] || content

end # Define markups - require 'github/markups' + instance_eval File.read(File.dirname(__FILE__) + '/markups.rb') end end
M lib/github/markups.rblib/github/markups.rb

@@ -1,9 +1,8 @@

-GitHub::Markup.instance_eval do - markup(:markdown, /md|mkdn?|markdown/) do |content| - Markdown.new(content).to_html - end +markup(:markdown, /md|mkdn?|markdown/) do |content| + Markdown.new(content).to_html +end - markup(:redcloth, /textile/) do |content| - RedCloth.new(content).to_html - end +markup(:redcloth, /textile/) do |content| + RedCloth.new(content).to_html end +