class ProsemirrorToHtml::Nodes::Heading

Public Instance Methods

matching() click to toggle source
# File lib/prosemirror_to_html/nodes/heading.rb, line 5
def matching
  @node.type === 'heading'
end
tag() click to toggle source
# File lib/prosemirror_to_html/nodes/heading.rb, line 9
def tag
  "h#{@node.attrs.level}"
end