From 07622e9606c910d15846c1f2e39631231c966dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 29 Nov 2022 16:00:22 +0800 Subject: [PATCH] fix: emoji alt text --- composables/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/content.ts b/composables/content.ts index 49844899..9e8cbe74 100644 --- a/composables/content.ts +++ b/composables/content.ts @@ -56,7 +56,7 @@ export function contentToVNode( .replace(/:([\w-]+?):/g, (_, name) => { const emoji = customEmojis[name] if (emoji) - return `${name}` + return `:${name}:` return `:${name}:` }) // handle code frames