Skip to content

Commit a2d47ce

Browse files
authored
fix: allow > in style block (#56)
1 parent d119682 commit a2d47ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function extractScriptSetup(html: string) {
5252
function extractCustomBlock(html: string, options: ResolvedOptions) {
5353
const blocks: string[] = []
5454
for (const tag of options.customSfcBlocks) {
55-
html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<>]*<\\/${tag}>`, 'gm'), (code) => {
55+
html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<]*<\\/${tag}>`, 'gm'), (code) => {
5656
blocks.push(code)
5757
return ''
5858
})

0 commit comments

Comments
 (0)