prevent codeblock escaping

This commit is contained in:
derpystuff 2023-02-25 00:08:13 +01:00
parent 7cfc996490
commit f9dfc8fc93

View file

@ -10,7 +10,7 @@ module.exports.highlight = function(content){
}
module.exports.codeblock = function(type, content){
return "```" + type + "\n" + content.join('\n') + "\n```"
return "```" + type + "\n" + content.join('\n').replace(/`/g, '`') + "\n```"
}
module.exports.link = function(url, masked, tooltip = ""){