class HtmlToProsemirror::Marks::Link

Public Instance Methods

data() click to toggle source
# File lib/html_to_prosemirror/marks/link.rb, line 9
def data
  {
    type: "link",
    attrs: {
      href: @node.attribute('href').value
    }
  }
end
matching() click to toggle source
# File lib/html_to_prosemirror/marks/link.rb, line 5
def matching
  @node.name === 'a'
end