open named links in new window, @snicker this will not work for links auto detected by marked, we should override this piece of code https://github.com/chjj/marked/blob/master/lib/marked.js#L578 but i am not sure it is possible to do without overriding the whole function

This commit is contained in:
Matteo Pagliazzi
2013-11-24 17:49:12 +01:00
parent 0e7c7e439f
commit fa2fb8e3fb

View File

@@ -100,7 +100,7 @@ habitrpg.directive('habitrpgSortable', ['User', function(User) {
.replace(/'/g, ''');
};
if (cap[0].charAt(0) !== '!') {
return '<a class="markdown-link" href="'
return '<a target="_blank" class="markdown-link" href="'
+ escape(link.href)
+ '"'
+ (link.title