Sha256: 898c59d927fed9129f5626a116830595a095c4d5b2f58422d2283e86d533a9bb

Contents?: true

Size: 431 Bytes

Versions: 9

Compression:

Stored size: 431 Bytes

Contents

require 'text_filter_plugin'
require 'RedCloth'

class PublifyApp
  class Textfilter
    class Textile < TextFilterPlugin::Markup
      plugin_display_name 'Textile'
      plugin_description 'Textile markup language'

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

      def self.filtertext(text)
        RedCloth.new(text).to_html(:textile)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 lib/publify_textfilter_textile.rb
publify_core-9.0.1 lib/publify_textfilter_textile.rb
publify_core-9.0.0 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre6 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre5 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre4 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre3 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre2 lib/publify_textfilter_textile.rb
publify_core-9.0.0.pre1 lib/publify_textfilter_textile.rb