From f55285d93b8d32990ac1bc54f73b183145cd7158 Mon Sep 17 00:00:00 2001 From: dribble-njr Date: Fri, 22 Nov 2024 09:43:12 +0800 Subject: [PATCH] fix: duplicate render in GFM alerts --- src/utils/MDAlert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/MDAlert.ts b/src/utils/MDAlert.ts index a2942ee..58118c0 100644 --- a/src/utils/MDAlert.ts +++ b/src/utils/MDAlert.ts @@ -27,7 +27,7 @@ export default function markedAlert(options: AlertOptions = {}): MarkedExtension title = ucfirst(variantType), titleClassName = `${className}-title`, } = matchedVariant - const typeRegexp = new RegExp(createSyntaxPattern(variantType)) + const typeRegexp = new RegExp(createSyntaxPattern(variantType), `i`) Object.assign(token, { type: `alert`,