Sha256: 973f7c80df9cf83a4216d8201b1c6c87ddd40f370d2521b183ec96176c7c39d4

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require_relative "draftjs_html/version"
require 'nokogiri'
require_relative 'draftjs_html/draftjs'
require_relative 'draftjs_html/to_html'
require_relative 'draftjs_html/from_html'

module DraftjsHtml
  class Error < StandardError; end

  def self.to_html(raw_draftjs, options: {})
    ToHtml.new(options).convert(raw_draftjs)
  end

  def self.from_html(html_str, options: {})
    FromHtml.new(options).convert(html_str)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
draftjs_html-0.16.0 lib/draftjs_html.rb
draftjs_html-0.15.0 lib/draftjs_html.rb