Sha256: e47a9a1a15c43526dfc32abdbeeb72c6e6c83027bbf8d79cdeef3ee27a661ed3

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

require 'rdiscount'

module Jackb
  class Markdown < Jackb::Highlight
    attr_reader   :content, :formatted_content
    
    def initialize(content)
      @content = content
      @formatted_content = RDiscount.new(content)
    end
    
    
    def render
      super(formatted_content.to_html)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jackb-0.0.6.beta lib/jackb/markdown.rb
jackb-0.0.5 lib/jackb/markdown.rb
jackb-0.0.4 lib/jackb/markdown.rb