fix(types): add RegExp to markdown's allowed attributes (#3008)

pull/2982/merge
Jeff Tian 1 year ago committed by GitHub
parent 6edc588e5c
commit bc96b2bb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,7 +43,7 @@ export interface MarkdownOptions extends MarkdownIt.Options {
attrs?: {
leftDelimiter?: string
rightDelimiter?: string
allowedAttributes?: string[]
allowedAttributes?: Array<string | RegExp>
disable?: boolean
}
defaultHighlightLang?: string

Loading…
Cancel
Save