Sha256: 4f071389f65c568466f602f79cb896479439482a09208cccd1fcf0b45c196068

Contents?: true

Size: 546 Bytes

Versions: 11

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require "text_filter_plugin"
require "RedCloth"

class PublifyApp
  class Textfilter
    class Textile < TextFilterPlugin::Markup
      plugin_display_name "Textile (Deprecated)"
      plugin_description "Textile markup language"

      def self.help_text
        %{
See [_why's Textile reference](http://hobix.com/textile/).
}
      end

      def self.filtertext(text)
        ActiveSupport::Deprecation.warn "Use of Textile is deprecated"
        RedCloth.new(text).to_html(:textile)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
publify_core-9.2.10 lib/publify_textfilter_textile.rb
publify_core-9.2.9 lib/publify_textfilter_textile.rb
publify_core-9.2.8 lib/publify_textfilter_textile.rb
publify_core-9.2.7 lib/publify_textfilter_textile.rb
publify_core-9.2.6 lib/publify_textfilter_textile.rb
publify_core-9.2.5 lib/publify_textfilter_textile.rb
publify_core-9.2.4 lib/publify_textfilter_textile.rb
publify_core-9.2.3 lib/publify_textfilter_textile.rb
publify_core-9.2.2 lib/publify_textfilter_textile.rb
publify_core-9.2.1 lib/publify_textfilter_textile.rb
publify_core-9.2.0 lib/publify_textfilter_textile.rb