mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
masked link tooltips
This commit is contained in:
parent
90f4b87832
commit
0d3b8ce64e
2 changed files with 7 additions and 8 deletions
|
@ -13,8 +13,9 @@ module.exports.codeblock = function(type, content){
|
|||
return "```" + type + "\n" + content.join('\n') + "\n```"
|
||||
}
|
||||
|
||||
module.exports.link = function(url, masked){
|
||||
if(masked) return `[${masked}](${url})`
|
||||
module.exports.link = function(url, masked, tooltip = ""){
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(masked) return `[${masked}](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue