From 6dd8e679cac70105f8069ca1b86acf20a94e470b Mon Sep 17 00:00:00 2001 From: Jose Soares Date: Sat, 23 Feb 2013 21:48:09 -0500 Subject: [PATCH] [-] Added support for github @mentions --- src/extensions/github.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/extensions/github.js b/src/extensions/github.js index c4f86827..6d8a6847 100644 --- a/src/extensions/github.js +++ b/src/extensions/github.js @@ -14,6 +14,14 @@ replace : function(match, prefix, content, suffix) { return '' + content + ''; } + }, + { + // @mentions + type : 'lang', + regex : '(@([A-Za-z0-9-_]+))', + replace : function(match, content, user) { + return '' + content + '' + } } ]; };