Sha256: 3b59b53d09f544fd13dadddabc6b53a3b16248d88e2032392409b14fd329ee2a
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
module HtmlToProsemirror module Nodes class ListItem < Node def initialize(dom_node) super(dom_node) @wrapper = { type: 'paragraph' } end def matching @node.name === 'li' end def data if(@node.children.length === 1 && @node.children[0].name === 'p') @wrapper = nil end { type: "list_item" } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems