Sha256: 17a78740b820fe139a7d13bacbbeddd6714344d461ee034afa79a9072ebf535a

Contents?: true

Size: 230 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
auto_html-1.6.1 lib/auto_html/filters/redcarpet.rb
auto_html-1.6.0 lib/auto_html/filters/redcarpet.rb