Sha256: 1b11aa0eb428135e943b8ba803d879c1407cf7adb9c674c71454d787f48806d9

Contents?: true

Size: 231 Bytes

Versions: 54

Compression:

Stored size: 231 Bytes

Contents

require 'kramdown'

module Locomotive
  module Steam

    class MarkdownService

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

        Kramdown::Document.new(text, auto_ids: false).to_html
      end

    end

  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.rc9 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc8 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc6 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc4 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc3 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc2 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.rc1 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.beta.3 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.beta.2 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.beta.1 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.alpha.3 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.alpha.2 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.alpha.1 lib/locomotive/steam/services/markdown_service.rb
locomotivecms_steam-1.0.0.pre.alpha lib/locomotive/steam/services/markdown_service.rb