From afbc254e74e516a9525ddf2d083e985362708f35 Mon Sep 17 00:00:00 2001 From: MasterYHY <95060647+Cross1111@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:22:42 +0800 Subject: [PATCH] Update InlineCode.js --- src/core/hooks/InlineCode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hooks/InlineCode.js b/src/core/hooks/InlineCode.js index 25fced12..a08c5a31 100644 --- a/src/core/hooks/InlineCode.js +++ b/src/core/hooks/InlineCode.js @@ -41,7 +41,7 @@ export default class InlineCode extends ParagraphBase { } rule() { - const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)' }; + const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)', }; ret.reg = compileRegExp(ret, 'g'); return ret; }