mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-22 05:44:16 +00:00
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:
parent
0e7c7e439f
commit
fa2fb8e3fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue