|
|
@ -21,13 +21,18 @@ export default defineConfig({
|
|
|
|
for (const line of code.children) {
|
|
|
|
for (const line of code.children) {
|
|
|
|
if (line.type !== 'element') continue
|
|
|
|
if (line.type !== 'element') continue
|
|
|
|
for (const token of line.children) {
|
|
|
|
for (const token of line.children) {
|
|
|
|
if (token.type === 'element' && token.children[0].type === 'text') {
|
|
|
|
if (
|
|
|
|
token.children[0].value = token.children[0].value.replace('[!!code', '[!code')
|
|
|
|
token.type === 'element' &&
|
|
|
|
|
|
|
|
token.children[0].type === 'text'
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
token.children[0].value = token.children[0].value.replace(
|
|
|
|
|
|
|
|
'[!!code',
|
|
|
|
|
|
|
|
'[!code'
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|