class HtmlToProsemirror::Marks::Code

Public Instance Methods

data() click to toggle source
# File lib/html_to_prosemirror/marks/code.rb, line 12
def data
  {
    type: "code"
  }
end
matching() click to toggle source
# File lib/html_to_prosemirror/marks/code.rb, line 5
def matching
  if (@node.parent.name === 'pre')
    return false
  end
  @node.name === 'code'
end