Sha256: 903dfa9b5067da0a4dc20fa6642facba6d16d2350dd081bc5666b502859392e4

Contents?: true

Size: 746 Bytes

Versions: 3

Compression:

Stored size: 746 Bytes

Contents

module Haml::Filters::Markdown
  include Haml::Filters::Base
  lazy_require "redcarpet"

  def render(text)
    Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(),
                                        :autolink => true,
                                        :no_intra_emphasis => true,
                                        :tables => true,
                                        :fenced_code_blocks => true,
                                        :lax_html_blocks => true,
                                        :strikethrough => true,
                                        :superscript => true,
                                        :space_after_headers => true
                                       ).render(text)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
showboat-0.0.3 config/initializers/haml_markdown.rb
showboat-0.0.2 config/initializers/haml_markdown.rb
showboat-0.0.1 config/initializers/haml_markdown.rb