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:
@@ -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];
|
||||
}
|
||||
}
|
||||
}]);
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user