Skip to content

Commit

Permalink
open named links in new window, @snicker this will not work for links…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
paglias committed Nov 24, 2013
1 parent 0e7c7e4 commit fa2fb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/directives/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa2fb8e

Please sign in to comment.