Class: ReverseMarkdown::Converters::Dl

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/converters/dl.rb

Instance Method Summary collapse

Instance Method Details

#convert(node, state = {}) ⇒ String

Parameters:

  • node (Nokogiri::XML::Element)
  • state (Hash) (defaults to: {})

Returns:

  • (String)


7
8
9
10
# File 'lib/solargraph/converters/dl.rb', line 7

def convert node, state = {}
  content = treat_children(node, state).strip
  "\n\n#{content}\n"
end