Sha256: e64e6cdc390311ee91b841ff0756dc156f43df1585f67f6b673ee67bb6f61241

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

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

10 entries across 10 versions & 1 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.4.0 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.3.0 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.2.0 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.1.1 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.1.0 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.0.3 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.0.2 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.0.1 lib/publify_textfilter_textile.rb
HornsAndHooves-publify_core-10.0.0 lib/publify_textfilter_textile.rb