Sha256: 2d1a9a73bce8aa25286c83b4ef8522d04d1c9adecede86e479cb1d80f27c183d
Contents?: true
Size: 384 Bytes
Versions: 15
Compression:
Stored size: 384 Bytes
Contents
module FilteredColumn module Filters class SmartypantsFilter < Base set_name "Markdown with Smarty Pants" def self.filter(text) if Object.const_defined?(:BlueCloth) && Object.const_defined?(:RubyPants) RubyPants.new(BlueCloth.new(text.gsub(%r{</?notextile>}, '')).to_html).to_html else text end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems