Skip to content

Commit

Permalink
fix: allow > in style block (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Dec 1, 2024
1 parent d119682 commit a2d47ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
})
Expand Down

0 comments on commit a2d47ce

Please sign in to comment.