Sha256: 79c14fcc6427c1abf5b9d1c24c52d4f43bdd68b9f8697bc427cd43c502e1b43a

Contents?: true

Size: 230 Bytes

Versions: 4

Compression:

Stored size: 230 Bytes

Contents

require 'redcarpet'
AutoHtml.add_filter(:redcarpet).with(:renderer => Redcarpet::Render::HTML, :markdown_options => {}) do |text, options|
  Redcarpet::Markdown.new(options[:renderer], options[:markdown_options]).render(text)
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
auto_html-whistlerbrk-2.0.0.pre lib/auto_html/filters/redcarpet.rb
auto_html-1.6.4 lib/auto_html/filters/redcarpet.rb
auto_html-1.6.3 lib/auto_html/filters/redcarpet.rb
auto_html-1.6.2 lib/auto_html/filters/redcarpet.rb