mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 02:17:05 -04:00
fix forum channel count
This commit is contained in:
parent
19979e440e
commit
83f091b0a6
2 changed files with 12 additions and 6 deletions
|
@ -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')) + "```"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue