mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
[markdown] apparently nbsp breaks in links?
This commit is contained in:
parent
7e96b1a413
commit
c671e41613
1 changed files with 2 additions and 2 deletions
|
@ -139,13 +139,13 @@ module.exports.smallIconPill = function(icon, content = ""){
|
||||||
|
|
||||||
module.exports.iconLinkPill = function(icon, url, content = "", tooltip = ""){
|
module.exports.iconLinkPill = function(icon, url, content = "", tooltip = ""){
|
||||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||||
if(content) return `${_icon(icon)} [**\` ${_escapeCodeblock(content).replace(/ /g, " ")} \`**](${url.replace(/\)/g, '\\)')}${tooltip})`
|
if(content) return `${_icon(icon)} [**\` ${_escapeCodeblock(content)} \`**](${url.replace(/\)/g, '\\)')}${tooltip})`
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.linkPill = function(url, content = "", tooltip = ""){
|
module.exports.linkPill = function(url, content = "", tooltip = ""){
|
||||||
if(tooltip.length) tooltip = ` '${tooltip}'`
|
if(tooltip.length) tooltip = ` '${tooltip}'`
|
||||||
if(content) return `[**\` ${_escapeCodeblock(content).replace(/ /g, " ")} \`**](${url.replace(/\)/g, '\\)')}${tooltip})`
|
if(content) return `[**\` ${_escapeCodeblock(content)} \`**](${url.replace(/\)/g, '\\)')}${tooltip})`
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue