class HtmlToProsemirror::Nodes::Heading
Public Instance Methods
data()
click to toggle source
# File lib/html_to_prosemirror/nodes/heading.rb, line 9 def data { type: "heading", attrs: { level: get_level } } end
get_level()
click to toggle source
# File lib/html_to_prosemirror/nodes/heading.rb, line 18 def get_level matches = @node.name.scan(/^h([1-6])$/).first if matches return matches.first end return nil end
matching()
click to toggle source
# File lib/html_to_prosemirror/nodes/heading.rb, line 5 def matching !get_level.nil? end