fix forum channel count

This commit is contained in:
bignutty 2025-01-28 04:00:32 +01:00
parent 19979e440e
commit 83f091b0a6
2 changed files with 12 additions and 6 deletions

View file

@ -49,7 +49,13 @@ module.exports.highlight = function(content = ""){
return "`" + content.toString().replace(/\`/g, 'ˋ') + "`"
}
module.exports.codeblock = function(type, content = ""){
/**
* Formats a Markdown Codeblock
* @param type Language Type
* @param {Array} content Lines
* @returns {string} Formatted Codeblock
*/
module.exports.codeblock = function(type, content = []){
if(!content.length) return "```" + type + "```"
return "```" + type + "\n" + _escapeCodeblock(content.join('\n')) + "```"
}