Skip to content

Commit cbef8d2

Browse files
committed
add more video tags
1 parent fb0912d commit cbef8d2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mod.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ export function render(markdown: string, opts: RenderOptions = {}): string {
6363
allowedAttributes: {
6464
...sanitizeHtml.defaults.allowedAttributes,
6565
img: ["src", "alt", "height", "width", "align"],
66-
video: ["src", "alt", "height", "width"],
66+
video: [
67+
"src",
68+
"alt",
69+
"height",
70+
"width",
71+
"autoplay",
72+
"muted",
73+
"loop",
74+
"playsinline",
75+
],
6776
a: ["id", "aria-hidden", "href", "tabindex", "rel"],
6877
svg: ["viewbox", "width", "height", "aria-hidden"],
6978
path: ["fill-rule", "d"],

0 commit comments

Comments
 (0)