add markdown as angular filter
This commit is contained in:
@@ -99,6 +99,16 @@
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
habitrpg.filter('markdown', function() {
|
||||
return function(input){
|
||||
var html = md.toHtml(input);
|
||||
|
||||
html = html.replace(' href','target="_self" href');
|
||||
|
||||
return html;
|
||||
};
|
||||
});
|
||||
})()
|
||||
|
||||
habitrpg.directive('questRewards', ['$rootScope', function($rootScope){
|
||||
|
||||
Reference in New Issue
Block a user