lib/kramdown/parser/kramdown/autolink.rb in kramdown-0.10.0 vs lib/kramdown/parser/kramdown/autolink.rb in kramdown-0.11.0
- old
+ new
@@ -41,10 +41,10 @@
# 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}})
+ el = Element.new(:a, nil, {'href' => href})
add_text(@src[1].sub(/^mailto:/, ''), el)
@tree.children << el
end
define_parser(:autolink, AUTOLINK_START, '<')