[-] Added support for github @mentions

This commit is contained in:
Jose Soares 2013-02-23 21:48:09 -05:00
parent 2e102c72b2
commit 6dd8e679ca

View File

@ -14,6 +14,14 @@
replace : function(match, prefix, content, suffix) { replace : function(match, prefix, content, suffix) {
return '<del>' + content + '</del>'; return '<del>' + content + '</del>';
} }
},
{
// @mentions
type : 'lang',
regex : '(@([A-Za-z0-9-_]+))',
replace : function(match, content, user) {
return '<a href="//github.com/' + user + '">' + content + '</a>'
}
} }
]; ];
}; };