diff --git a/labscore/utils/markdown.js b/labscore/utils/markdown.js index d86a48d..eb20589 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -139,13 +139,13 @@ module.exports.smallIconPill = function(icon, content = ""){ module.exports.iconLinkPill = function(icon, url, content = "", 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 } module.exports.linkPill = function(url, content = "", 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 }