<%- (function(){ let mainPost = post let id = postid == -1 ? -2 : 0 function recurse(post) { id++ const makeForm = id == comment || postid == -1 ret += `

${post.author}: ${post.title}

` + post.content.replaceAll('<','<').replaceAll('>','>') .replaceAll('[* ', '').replaceAll(' *]', '') .replaceAll('[** ', '').replaceAll(' **]', '') .replaceAll('[*** ', '').replaceAll(' ***]', '') .replaceAll('[_ ', '').replaceAll(' _]', '') .replaceAll('[*_ ', '').replaceAll(' _*]', '') .replaceAll('[**_ ', '').replaceAll(' _**]', '') .replaceAll('[***_ ', '').replaceAll(' _***]', '') .replaceAll('[" ', '
').replaceAll(' "]', '
') .replaceAll('["" ', '
').replaceAll(' ""]', '
') .replaceAll('\n\n', '
') if (postid != -1 || id == -1) { if(makeForm) { if(postid != -1) ret += `[Nevermind]` ret += `
` } else ret += `[Reply]
` } else ret += `[Open]` for(const comment of post.comments) { r = recurse(comment) + r } ret += '' } return recurse(post) })() %>