From 8cca54f66c5c03de4c8e3eb9561d37a45b7fbb89 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sun, 27 Aug 2023 13:53:29 +0200 Subject: [PATCH] oops --- labscore/utils/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labscore/utils/markdown.js b/labscore/utils/markdown.js index 7968e18..f66928a 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -11,7 +11,7 @@ module.exports.highlight = function(content = ""){ module.exports.codeblock = function(type, content = ""){ if(!content.length) return "```" + type + "\n```" - return "```" + type + "\n" + content.toString().join('\n').replace(/\`/g, '`​') + "\n```" + return "```" + type + "\n" + content.join('\n').replace(/\`/g, '`​') + "\n```" } module.exports.link = function(url, masked, tooltip = ""){