From e3d424c1b713f4def429b53c0802913c40afcc81 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 5 Dec 2022 12:12:16 +0000 Subject: [PATCH] feat: support audio tag --- src/markdown/sanitize-schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/markdown/sanitize-schema.ts b/src/markdown/sanitize-schema.ts index 2e34eae0..f634a63e 100644 --- a/src/markdown/sanitize-schema.ts +++ b/src/markdown/sanitize-schema.ts @@ -12,6 +12,8 @@ const scheme = { "toc", "anchor", "mention", + "audio", + "source", ], attributes: { ...defaultSchema.attributes, @@ -27,6 +29,8 @@ const scheme = { "autoplay", "playsinline", ], + audio: ["className", "src", "controls", "loop", "muted", "autoplay"], + source: ["src", "type"], iframe: [ "className", "src",