Sha256: 14c60634dff0f0c21097bbb8e069bcddd16cbed7f4b3d226dfd769fd35b48f2e

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

module HtmlToProsemirror
  module Nodes
    class Text < Node

      def matching
        @node.name === 'text'
      end

      def data
        @text = @node.content
        {
          type: "text",
          text: @text
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html_to_prosemirror-0.2.0 lib/html_to_prosemirror/nodes/text.rb
html_to_prosemirror-0.1.1 lib/html_to_prosemirror/nodes/text.rb
html_to_prosemirror-0.1.0 lib/html_to_prosemirror/nodes/text.rb