mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 20:21:01 +01:00
feat(forums): load forum desc with markdown support
This commit is contained in:
@@ -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});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user