Skip to content

Commit

Permalink
fix: duplicate render in GFM alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
dribble-njr committed Nov 22, 2024
1 parent b9953ab commit f55285d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/MDAlert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit f55285d

Please sign in to comment.