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?: { attrs?: {
leftDelimiter?: string leftDelimiter?: string
rightDelimiter?: string rightDelimiter?: string
allowedAttributes?: string[] allowedAttributes?: Array<string | RegExp>
disable?: boolean disable?: boolean
} }
defaultHighlightLang?: string defaultHighlightLang?: string

Loading…
Cancel
Save