mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
surface source code more
This commit is contained in:
parent
b9fc1f5134
commit
baee9233d1
4 changed files with 31 additions and 6 deletions
|
@ -37,6 +37,18 @@ module.exports.iconPill = function(icon, content){
|
|||
return ICONS[icon] + " **` " + content + " `**"
|
||||
}
|
||||
|
||||
module.exports.iconLinkPill = function(icon, url, content, tooltip = ""){
|
||||
if(!ICONS[icon]) icon = "question"
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(content) return `${ICONS[icon]} [**\` ${content} \`**](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
module.exports.linkPill = function(url, content, tooltip = ""){
|
||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||
if(content) return `[**\` ${content} \`**](${url}${tooltip})`
|
||||
return url
|
||||
}
|
||||
|
||||
const SUPERSCRIPT_NUMBERS = ["⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹"]
|
||||
module.exports.citation = function(number = 1, url, tooltip = ""){
|
||||
let formatted = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue