Module: Hemingway::QuoteParagraphNode

Defined in:
lib/hemingway/block/quote/quote_nodes.rb

Instance Method Summary collapse

Instance Method Details

#htmlObject



16
17
18
19
20
21
22
# File 'lib/hemingway/block/quote/quote_nodes.rb', line 16

def html
  paragraph_content = sequence.elements.map do |element|
    element.html
  end.join

  Build.tag("p", paragraph_content)
end