make sure links are properly limited

This commit is contained in:
derpystuff 2024-01-19 20:56:09 +01:00
parent 9e5e550420
commit 192deea3c2

View file

@ -21,7 +21,7 @@ module.exports.codeblock = function(type, content = ""){
module.exports.link = function(url, masked, tooltip = ""){ module.exports.link = function(url, masked, tooltip = ""){
if(tooltip.length) tooltip = ` '${tooltip}'` if(tooltip.length) tooltip = ` '${tooltip}'`
if(masked) return `[${masked}](${url}${tooltip})` if(masked) return `[${masked}](<${url}>${tooltip})`
return url return url
} }