mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
make sure links are properly limited
This commit is contained in:
parent
9e5e550420
commit
192deea3c2
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module.exports.codeblock = function(type, content = ""){
|
|||
|
||||
module.exports.link = function(url, masked, tooltip = ""){
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(masked) return `[${masked}](${url}${tooltip})`
|
||||
if(masked) return `[${masked}](<${url}>${tooltip})`
|
||||
return url
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue