From eb5c95ef8e514e478d8757b9f14914aa23d82949 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 1 Apr 2026 05:30:07 -0500 Subject: [PATCH] refac --- src/lib/utils/marked/colon-fence-extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/marked/colon-fence-extension.ts b/src/lib/utils/marked/colon-fence-extension.ts index c9dca5ee4b..329614462e 100644 --- a/src/lib/utils/marked/colon-fence-extension.ts +++ b/src/lib/utils/marked/colon-fence-extension.ts @@ -11,7 +11,7 @@ function colonFenceTokenizer(this: any, src: string) { // Match :::type at the start of a line, optionally followed by content, then closing ::: - const match = /^:::([\w-]+)\n([\s\S]*?)(?:\n:::(?:\s*$|\n))/m.exec(src); + const match = /^:::([\w-]+)[^\n]*\n([\s\S]*?)(?:\n:::(?:\s*(?:\n|$)))/.exec(src); if (match) { const fenceType = match[1]; const text = match[2].trim();