class Kramdown::Parser::Kramdown

def parse_setext_header

Parse the Setext header at the current location.
def parse_setext_header
  if @tree.children.last && @tree.children.last.type != :blank
    return false
  end
  @src.pos += @src.matched_size
  text, id, level = @src[1].strip, @src[2], @src[3]
  el = new_block_el(:header, nil, :level => (level == '-' ? 2 : 1), :raw_text => text)
  add_text(text, el)
  el.options[:attr] = {'id' => id} if id
  @tree.children << el
  true
end