gettin' fancy
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 19:00:55 -0700
2 files changed,
7 insertions(+),
8 deletions(-)
M
lib/github/markup.rb
→
lib/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.rb
→
lib/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 +