From f98c667613b1a44c8cf4236807d64cb41ea3edef Mon Sep 17 00:00:00 2001 From: Zaidhaan Date: Thu, 23 Feb 2023 15:13:39 +0800 Subject: [PATCH] fix: properly parse bolded italics (#1808) --- composables/content-parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/content-parse.ts b/composables/content-parse.ts index b01819c2..3bab8947 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -445,7 +445,7 @@ function replaceCustomEmoji(customEmojis: Record Node][] = [ - [/\*\*\*(.*?)\*\*\*/g, c => h('b', null, [h('em', null, c)])], + [/\*\*\*(.*?)\*\*\*/g, ([c]) => h('b', null, [h('em', null, c)])], [/\*\*(.*?)\*\*/g, c => h('b', null, c)], [/\*(.*?)\*/g, c => h('em', null, c)], [/~~(.*?)~~/g, c => h('del', null, c)],