Sha256: 2f5a55df4025dd6b0e19f667833a73cb156d1bc70d3e5cf7f4aab35156c35445

Contents?: true

Size: 215 Bytes

Versions: 6

Compression:

Stored size: 215 Bytes

Contents

module Publishr
  class KramdownProcessor
    def self.convert(html)
      sanitized_html = HtmlProcessor.sanitize(html)
      Kramdown::Document.new(sanitized_html, :input => 'html' ).to_kramdown
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
publishr-0.5.7 lib/publishr/kramdown_processor.rb
publishr-0.5.6 lib/publishr/kramdown_processor.rb
publishr-0.5.5 lib/publishr/kramdown_processor.rb
publishr-0.5.4 lib/publishr/kramdown_processor.rb
publishr-0.5.3 lib/publishr/kramdown_processor.rb
publishr-0.5.2 lib/publishr/kramdown_processor.rb