Permalink
Browse files

Created renderer

  • Loading branch information...
1 parent c8c43ae commit 10a7667312750f28931c3f03269ed87bb6f8a833 @steveklabnik committed Jan 22, 2012
Showing with 9 additions and 2 deletions.
  1. +3 −1 lib/metadown/renderer.rb
  2. +2 −0 metadown.gemspec
  3. +4 −1 spec/renderer_spec.rb
View
@@ -1,4 +1,6 @@
+require "redcarpet"
+
module Metadown
- class Renderer
+ class Renderer < Redcarpet::Render::HTML
end
end
View
@@ -15,6 +15,8 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = Metadown::VERSION
+ gem.add_dependency "redcarpet"
+
gem.add_development_dependency "rspec"
gem.add_development_dependency "rake"
end
View
@@ -2,7 +2,10 @@
require 'metadown/renderer'
describe Metadown::Renderer do
- it "is a redcarpet renderer"
+ it "is a redcarpet renderer" do
+ subject.should be_kind_of(Redcarpet::Render::HTML)
+ end
+
it "extracts YAML"
it "renders markdown"
end

0 comments on commit 10a7667

Please sign in to comment.