class Kramdown::Parser::Kramdown

def parse_autolink

Parse the autolink at the current location.
def parse_autolink
  @src.pos += @src.matched_size
  href = @src[1]
  href= "mailto:#{href}" if @src[2].nil?
  el = Element.new(:a, nil, {:attr => {'href' => href}})
  add_text(@src[1].sub(/^mailto:/, ''), el)
  @tree.children << el
end