class HtmlToProsemirror::Nodes::OrderedList

Public Instance Methods

data() click to toggle source
# File lib/html_to_prosemirror/nodes/ordered_list.rb, line 9
def data
  {
    type: "ordered_list",
    attrs: {
      order: 1
    }
  }
end
matching() click to toggle source
# File lib/html_to_prosemirror/nodes/ordered_list.rb, line 5
def matching
  @node.name === 'ol'
end