Skip to content

Commit bc96b2b

Browse files
authoredSep 24, 2023
fix(types): add RegExp to markdown's allowed attributes (#3008)
1 parent 6edc588 commit bc96b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/markdown/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface MarkdownOptions extends MarkdownIt.Options {
4343
attrs?: {
4444
leftDelimiter?: string
4545
rightDelimiter?: string
46-
allowedAttributes?: string[]
46+
allowedAttributes?: Array<string | RegExp>
4747
disable?: boolean
4848
}
4949
defaultHighlightLang?: string

0 commit comments

Comments
 (0)
Please sign in to comment.