class Kramdown::Element

(paragraphs, headers, emphasis, …). The type of element can be set via the #type accessor.
kramdown only uses this one class for representing all available elements in a parse tree
Represents all elements in the parse tree.

def initialize(type, value = nil, attr = nil, options = {})

+options+ can also be set in this constructor for convenience.
Create a new Element object of type +type+. The optional parameters +value+, +attr+ and
def initialize(type, value = nil, attr = nil, options = {})
  @type, @value, @attr, @options = type, value, Utils::OrderedHash.new(attr), options
  @children = []
end

def inspect #:nodoc:

:nodoc:
def inspect #:nodoc:
  "<kd:#{@type}#{@value.nil? ? '' : ' ' + @value.inspect} #{@attr.inspect}#{options.empty? ? '' : ' ' + @options.inspect}#{@children.empty? ? '' : ' ' + @children.inspect}>"
end