Sha256: ba73bcc79c92d134ffa3f097e73c77980a14854a951290c07ecdae7f70954c5a

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

module Slippery
  class Document
    include Hexp

    def initialize(markdown)
      @markdown = markdown
    end

    def kramdown_document
      @kramdown_document ||= Kramdown::Document.new(@markdown, input: 'GFM')
    end

    def to_hexp
      @hexp ||= Slippery::Converter.new.convert(kramdown_document.root).to_hexp
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slippery-0.3.0 lib/slippery/document.rb
slippery-0.2.0 lib/slippery/document.rb