feat: support audio tag

This commit is contained in:
DIYgod 2022-12-05 12:12:16 +00:00
parent 21a6f9b706
commit e3d424c1b7
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 4 additions and 0 deletions

View File

@ -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",