Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweakages

  • Loading branch information...
commit c70c6fad0c85e90f5de9982ba75cc03fc139ba1d 1 parent 7954cf1
@defunkt defunkt authored
Showing with 5 additions and 5 deletions.
  1. +4 −0 README.md
  2. +1 −5 lib/github/markup.rb
View
4 README.md
@@ -4,3 +4,7 @@ GitHub Markup
require 'github/markup'
GitHub::Markup.render('README.markdown', "* One\n* Two")
+Or, more realistically:
+
+ require 'github/markup'
+ GitHub::Markup.render(file, File.read(file))
View
6 lib/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)
Please sign in to comment.
Something went wrong with that request. Please try again.