feat(forums): load forum desc with markdown support

This commit is contained in:
OldHawk
2017-07-04 11:51:02 +08:00
parent 6bb9e22399
commit 061bc8a5f0
3 changed files with 20 additions and 2 deletions

View File

@@ -69,5 +69,17 @@
NotifycationService.showErrorNotify(res.data.message, 'FORUMS.ADD_FAILED');
});
};
/**
* getForumDesc
* @param f
* @returns {*}
*/
vm.getForumDesc = function (f) {
if (f) {
return marked(f.desc, {sanitize: true});
}
};
}
}());