Class: ProsemirrorToHtml::Nodes::Heading
- Defined in:
- lib/prosemirror_to_html/nodes/heading.rb
Instance Method Summary collapse
Methods inherited from Node
#initialize, #matching, #self_closing, #text
Constructor Details
This class inherits a constructor from ProsemirrorToHtml::Nodes::Node
Instance Method Details
#tag ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/prosemirror_to_html/nodes/heading.rb', line 6 def tag [ { tag: "h#{@node.attrs.level}", attrs: tag_attrs } ] end |