Sha256: ac4fec6e57cbf748b8186ddee58a7b2068706863b21a9351163985d2d142860d
Contents?: true
Size: 418 Bytes
Versions: 3
Compression:
Stored size: 418 Bytes
Contents
require 'redcloth' module Thredded module Filter module Textile def self.included(base) base.class_eval do Thredded::Post::Filters << :textile end end def filtered_content if filter.to_sym == :textile @filtered_content = RedCloth.new(super).to_html.html_safe else @filtered_content = super end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.0.4 | lib/thredded/filter/textile.rb |
thredded-0.0.3 | lib/thredded/filter/textile.rb |
thredded-0.0.1 | lib/thredded/filter/textile.rb |