Sha256: 9c91526f41bbd94f24c0d3cfcd795369e8303deb242f5095267082cbc3a06ba4

Contents?: true

Size: 205 Bytes

Versions: 54

Compression:

Stored size: 205 Bytes

Contents

require 'RedCloth'

module Locomotive
  module Steam

    class TextileService

      def to_html(text)
        return '' if text.blank?

        ::RedCloth.new(text).to_html
      end

    end

  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
locomotivecms_steam-1.4.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.4.0.pre.rc.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.3.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.3.0.rc2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.3.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.0.rc3 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.0.rc2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.2.0.beta1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.0.rc3 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.0.rc2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.1.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.0.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.0.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.0.0.rc10 lib/locomotive/steam/services/textile_service.rb