mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
surface app directory and support in invite
This commit is contained in:
parent
602b68ad91
commit
2198b020f1
3 changed files with 22 additions and 17 deletions
|
@ -19,9 +19,10 @@ module.exports.codeblock = function(type, content = ""){
|
|||
return "```" + type + "\n" + content.join('\n').replace(/\`/g, '`') + "\n```"
|
||||
}
|
||||
|
||||
module.exports.link = function(url, masked, tooltip = ""){
|
||||
module.exports.link = function(url, masked, tooltip = "", embed = false){
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(masked) return `[${masked}](<${url}>${tooltip})`
|
||||
if(masked && !embed) return `[${masked}](<${url}>${tooltip})`
|
||||
if(masked && embed) return `[${masked}](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue