all repos — markup @ c70c6fad0c85e90f5de9982ba75cc03fc139ba1d

The code we use to render README.your_favorite_markup

tweakages
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 18:19:30 -0700
commit

c70c6fad0c85e90f5de9982ba75cc03fc139ba1d

parent

7954cf1e7408bbae15b678e90acd437cfe735194

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M README.mdREADME.md

@@ -4,3 +4,7 @@

require 'github/markup' GitHub::Markup.render('README.markdown', "* One\n* Two") +Or, more realistically: + + require 'github/markup' + GitHub::Markup.render(file, File.read(file))
M lib/github/markup.rblib/github/markup.rb

@@ -3,12 +3,8 @@ module Markup

extend self @@markups = {} - def markups - @@markups - end - def add_markup(regexp, &block) - markups[regexp] = block + @@markups[regexp] = block end def renderer(filename)