From f9dfc8fc93c3cf478b647d6f98d2a60556ac0ddf Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sat, 25 Feb 2023 00:08:13 +0100 Subject: [PATCH] prevent codeblock escaping --- 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 20c19d9..966a830 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -10,7 +10,7 @@ module.exports.highlight = function(content){ } module.exports.codeblock = function(type, content){ - return "```" + type + "\n" + content.join('\n') + "\n```" + return "```" + type + "\n" + content.join('\n').replace(/`/g, '`​') + "\n```" } module.exports.link = function(url, masked, tooltip = ""){