mirror of
https://github.com/doocs/md.git
synced 2025-02-10 16:55:49 +08:00
fix: duplicate render in GFM alerts
This commit is contained in:
parent
b9953ab2e7
commit
f55285d93b
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user