handle mailto differently
This commit is contained in:
parent
8bf75598ff
commit
263e0d4f25
@ -312,7 +312,9 @@ inline.lexer = function(str) {
|
||||
break;
|
||||
case 'autolink':
|
||||
if (cap[2] === '@') {
|
||||
text = mangle(cap[1].split(':').pop());
|
||||
text = cap[1][6] === ':'
|
||||
? mangle(cap[1].substring(7))
|
||||
: mangle(cap[1]);
|
||||
href = mangle('mailto:') + text;
|
||||
} else {
|
||||
text = escape(cap[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user