We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d119682 commit a2d47ceCopy full SHA for a2d47ce
src/core/markdown.ts
@@ -52,7 +52,7 @@ function extractScriptSetup(html: string) {
52
function extractCustomBlock(html: string, options: ResolvedOptions) {
53
const blocks: string[] = []
54
for (const tag of options.customSfcBlocks) {
55
- html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<>]*<\\/${tag}>`, 'gm'), (code) => {
+ html = html.replace(new RegExp(`<${tag}[^>]*\\b[^>]*>[^<]*<\\/${tag}>`, 'gm'), (code) => {
56
blocks.push(code)
57
return ''
58
})
0 commit comments