Commit 2c2ef537 authored by Johnny's avatar Johnny

chore: fix frontend linter

parent ea14280c
...@@ -24,17 +24,7 @@ export const SANITIZE_SCHEMA = { ...@@ -24,17 +24,7 @@ export const SANITIZE_SCHEMA = {
div: [...(defaultSchema.attributes?.div || []), "className"], div: [...(defaultSchema.attributes?.div || []), "className"],
span: [...(defaultSchema.attributes?.span || []), "className", "style", ["aria*"], ["data*"]], span: [...(defaultSchema.attributes?.span || []), "className", "style", ["aria*"], ["data*"]],
// iframe attributes for video embeds // iframe attributes for video embeds
iframe: [ iframe: ["src", "width", "height", "frameborder", "allowfullscreen", "allow", "title", "referrerpolicy", "loading"],
"src",
"width",
"height",
"frameborder",
"allowfullscreen",
"allow",
"title",
"referrerpolicy",
"loading",
],
// MathML attributes for KaTeX rendering // MathML attributes for KaTeX rendering
annotation: ["encoding"], annotation: ["encoding"],
math: ["xmlns"], math: ["xmlns"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment