From 5f3dddfe219c1916e8dbbe181818f4a3788e9754 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 18 Aug 2024 14:21:50 +0300 Subject: [PATCH] Fix for unmatched triple backticks --- public/scripts/showdown-underscore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/scripts/showdown-underscore.js b/public/scripts/showdown-underscore.js index 10ea68b63..d9125c97a 100644 --- a/public/scripts/showdown-underscore.js +++ b/public/scripts/showdown-underscore.js @@ -8,16 +8,16 @@ export const markdownUnderscoreExt = () => { return [{ type: 'lang', - regex: new RegExp('(`{3})[\\s\\S]*?\\1|(`{1,2}).*?\\2|\\b(?' + italicContent + ''; } - // If neither condition is met, return the original match + // If none of the conditions are met, return the original match return match; }, }];