fix: duplicate render in GFM alerts

This commit is contained in:
dribble-njr 2024-11-22 09:43:12 +08:00
parent b9953ab2e7
commit f55285d93b

View File

@ -27,7 +27,7 @@ export default function markedAlert(options: AlertOptions = {}): MarkedExtension
title = ucfirst(variantType), title = ucfirst(variantType),
titleClassName = `${className}-title`, titleClassName = `${className}-title`,
} = matchedVariant } = matchedVariant
const typeRegexp = new RegExp(createSyntaxPattern(variantType)) const typeRegexp = new RegExp(createSyntaxPattern(variantType), `i`)
Object.assign(token, { Object.assign(token, {
type: `alert`, type: `alert`,