Sha256: b92c8c9f8989e392ce0b8b3bc1efd5560e5cc28af4dcad52dd24d0101497420f

Contents?: true

Size: 297 Bytes

Versions: 15

Compression:

Stored size: 297 Bytes

Contents

module Blogo::Renderer
  class Markdown < Base
    add_dependency :gem => 'redcarpet', :require => 'redcarpet'

    def initialize
      @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
    end

    # :nodoc:
    def render(raw_text)
      @markdown.render(raw_text)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
blogo-0.1.4 lib/blogo/renderer/markdown.rb
blogo-0.1.3 lib/blogo/renderer/markdown.rb
blogo-0.1.2 lib/blogo/renderer/markdown.rb
blogo-0.1.1 lib/blogo/renderer/markdown.rb
blogo-0.1.0 lib/blogo/renderer/markdown.rb
blogo-0.0.10 lib/blogo/renderer/markdown.rb
blogo-0.0.9 lib/blogo/renderer/markdown.rb
blogo-0.0.8 lib/blogo/renderer/markdown.rb
blogo-0.0.7 lib/blogo/renderer/markdown.rb
blogo-0.0.6 lib/blogo/renderer/markdown.rb
blogo-0.0.5 lib/blogo/renderer/markdown.rb
blogo-0.0.4 lib/blogo/renderer/markdown.rb
blogo-0.0.3 lib/blogo/renderer/markdown.rb
blogo-0.0.2 lib/blogo/renderer/markdown.rb
blogo-0.0.1 lib/blogo/renderer/markdown.rb