class HtmlToProsemirror::Nodes::Image
Public Instance Methods
data()
click to toggle source
# File lib/html_to_prosemirror/nodes/image.rb, line 9 def data { type: "text", text: @node.attribute('src').value, marks: [{ type: 'link', attrs: { href: @node.attribute('src').value } }] } end
matching()
click to toggle source
# File lib/html_to_prosemirror/nodes/image.rb, line 5 def matching @node.name === 'img' end