handle explicit mailto in autolinks
This commit is contained in:
parent
7df4585a81
commit
54975d7bcd
@ -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]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user