Merge pull request #318 from negue/markdown_notes

add markdown as angular filter
This commit is contained in:
negue 2014-10-01 20:15:11 +02:00
commit 93f59936c4

View file

@ -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){