Sha256: 70e6d13d1c619c294d11c262073ff47c9ab34b059cd1ef8e2fe943c97237e54d

Contents?: true

Size: 254 Bytes

Versions: 4

Compression:

Stored size: 254 Bytes

Contents

require 'redcarpet'

module Jazzy
  class JazzyHTML < Redcarpet::Render::HTML
    def paragraph(text)
      "<p class=\"para\">#{text}</p>"
    end
  end

  def self.markdown
    @markdown ||= Redcarpet::Markdown.new(JazzyHTML, autolink: true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jazzy-0.0.14 lib/jazzy/jazzy_markdown.rb
jazzy-0.0.13 lib/jazzy/jazzy_markdown.rb
jazzy-0.0.12 lib/jazzy/jazzy_markdown.rb
jazzy-0.0.11 lib/jazzy/jazzy_markdown.rb