remove markdown refs, cleanup

This commit is contained in:
Mo Bitar
2017-02-15 13:20:17 -06:00
parent 979b5eb2a8
commit 8f077245fa
7 changed files with 28 additions and 137 deletions

View File

@@ -1,21 +0,0 @@
angular.module('app.frontend')
.service('markdownRenderer', function ($sce) {
marked.setOptions({
breaks: true,
sanitize: true
});
this.renderedContentForText = function(text) {
if(!text || text.length == 0) {
return "";
}
return marked(text);
}
this.renderHtml = function(html_code) {
return $sce.trustAsHtml(html_code);
};
});