Sha256: 4f7734a140af8128a3e207957a275df7fe78e0698962a101a99f1c6437afbebd

Contents?: true

Size: 177 Bytes

Versions: 5

Compression:

Stored size: 177 Bytes

Contents

require 'redcarpet'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
auto_html-1.5.1.1 lib/auto_html/filters/redcarpet.rb
auto_html-1.5.3 lib/auto_html/filters/redcarpet.rb
auto_html-1.5.2 lib/auto_html/filters/redcarpet.rb
auto_html-1.5.1 lib/auto_html/filters/redcarpet.rb
auto_html-1.5.0 lib/auto_html/filters/redcarpet.rb