From bc96b2bb5bc5361e55c46f270e3759c513db65d3 Mon Sep 17 00:00:00 2001 From: Jeff Tian Date: Sun, 24 Sep 2023 17:10:33 +0800 Subject: [PATCH] fix(types): add RegExp to markdown's allowed attributes (#3008) --- src/node/markdown/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/markdown/index.ts b/src/node/markdown/index.ts index 44648b66dc54..a4f753318a21 100644 --- a/src/node/markdown/index.ts +++ b/src/node/markdown/index.ts @@ -43,7 +43,7 @@ export interface MarkdownOptions extends MarkdownIt.Options { attrs?: { leftDelimiter?: string rightDelimiter?: string - allowedAttributes?: string[] + allowedAttributes?: Array disable?: boolean } defaultHighlightLang?: string