lib/site/topic-layout/topic-article/comments/parse-comment.js
Function parseComment
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function parseComment (comment) {
return new Promise((resolve, reject) => {
if (!comment.text) return resolve(comment)
marked(comment.text, {
sanitize: true,