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.8.0.alpha2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.4.1 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.4.0 lib/locomotive/steam/services/textile_service.rb
locomotivecms_steam-1.4.0.rc2 lib/locomotive/steam/services/textile_service.rb