diff --git a/packages/slidev/node/plugins/markdown.ts b/packages/slidev/node/plugins/markdown.ts index 779a8a6a69..7f05d0e93d 100644 --- a/packages/slidev/node/plugins/markdown.ts +++ b/packages/slidev/node/plugins/markdown.ts @@ -260,10 +260,10 @@ export function transformPlantUml(md: string, server: string): string { } /** - * Escape `{{}}` in code block to prevent Vue interpret it, #99 + * Escape `{{` in code block to prevent Vue interpret it, #99, #1316 */ export function escapeVueInCode(md: string) { - return md.replace(/{{(.*?)}}/g, '{{$1}}') + return md.replace(/{{/g, '{{') } export async function loadShikiSetups(