mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Merge pull request #318 from negue/markdown_notes
add markdown as angular filter
This commit is contained in:
commit
93f59936c4
1 changed files with 10 additions and 0 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue