handle explicit mailto in autolinks

This commit is contained in:
Christopher Jeffrey 2011-09-01 02:59:43 -05:00
parent 7df4585a81
commit 54975d7bcd

View File

@ -312,7 +312,7 @@ inline.lexer = function(str) {
break; break;
case 'autolink': case 'autolink':
if (cap[2] === '@') { if (cap[2] === '@') {
text = mangle(cap[1]); text = mangle(cap[1].split(':').pop());
href = mangle('mailto:') + text; href = mangle('mailto:') + text;
} else { } else {
text = escape(cap[1]); text = escape(cap[1]);