Sha256: d280213a3b67f9859fed4f3eb7c5b9ac3db5bc3db19b89cb98044c43bbf20e30

Contents?: true

Size: 290 Bytes

Versions: 15

Compression:

Stored size: 290 Bytes

Contents

module FilteredColumn
  module Filters
    class TextileFilter < Base
      def self.filter(text)
        Object.const_defined?("RedCloth") ? RedCloth.new(text).to_html : text
      end
      
      def self.escape(text)
        %(<notextile>#{text}</notextile>)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.3.1 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.3.0 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.2.4 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.2.3 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.2.2 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.2.1 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.2.0 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.1.4 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.1.3 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.1.2 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.1.1 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.1.0 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva_cms-0.0.1 vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb
adva-0.0.1 adva_cms/vendor/gems/filtered_column/lib/filtered_column/filters/textile_filter.rb