From a2d47ceb32d58737abc4faba1c5d15cec0a0b1ce Mon Sep 17 00:00:00 2001 From: _Kerman Date: Sun, 1 Dec 2024 14:53:02 +0800 Subject: [PATCH] fix: allow > in style block (#56) --- src/core/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/markdown.ts b/src/core/markdown.ts index b5911b2..141b62a 100644 --- a/src/core/markdown.ts +++ b/src/core/markdown.ts @@ -52,7 +52,7 @@ function extractScriptSetup(html: string) { function extractCustomBlock(html: string, options: ResolvedOptions) { const blocks: string[] = [] for (const tag of options.customSfcBlocks) { - html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<>]*<\\/${tag}>`, 'gm'), (code) => { + html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<]*<\\/${tag}>`, 'gm'), (code) => { blocks.push(code) return '' })