Sha256: e91c288b6c976edb99a327214b9008c106c734c13fd0c839091d8d2a046d6285

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

require 'redcarpet'

class FrenchPress
  class Post
    # Represents a Markdown post.
    class Markdown < Generic
      def render
        Redcarpet::Markdown.new(Redcarpet::Render::HTML).render @content
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
frenchpress-0.2.1 lib/frenchpress/post/markdown.rb
frenchpress-0.2 lib/frenchpress/post/markdown.rb