fix autolink

This commit is contained in:
Christopher Jeffrey 2011-08-13 23:29:45 -05:00
parent 6abe79e6ea
commit a25191e4d3

View File

@ -328,14 +328,15 @@ inline.lexer = function(str) {
if (cap[2] === '@') {
var email = mangle(cap[1])
, mailto = mangle('mailto:') + mailto;
out += '<a href="' + mailto + '">'
+ email
+ '</a>';
} else {
var href = escape(cap[1]);
}
out += '<a href="'
+ (mailto || href)
+ '">'
+ (email || href)
out += '<a href="' + href + '">'
+ href
+ '</a>';
}
break;
case 'strong':
out += '<strong>'