mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Added space before "target=" when added to href
Fixes bug where the first links in markdown boxes don't work
This commit is contained in:
parent
6f3c855db0
commit
a772c6dd8f
1 changed files with 3 additions and 3 deletions
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
html = html.replace(userHighlight, "<u>@"+userName+"</u>");
|
||||
|
||||
html = html.replace(' href','target="'+linktarget+'" href');
|
||||
html = html.replace(' href',' target="'+linktarget+'" href');
|
||||
element.html(html);
|
||||
});
|
||||
}
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
return function(input){
|
||||
var html = md.toHtml(input);
|
||||
|
||||
html = html.replace(' href','target="_self" href');
|
||||
html = html.replace(' href',' target="_self" href');
|
||||
|
||||
return html;
|
||||
};
|
||||
|
|
@ -125,4 +125,4 @@ habitrpg.directive('questRewards', ['$rootScope', function($rootScope){
|
|||
scope.quest = $rootScope.Content.quests[attrs.key];
|
||||
}
|
||||
}
|
||||
}]);
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue