Skip to content

Commit

Permalink
add more video tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Dec 16, 2021
1 parent fb0912d commit cbef8d2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ export function render(markdown: string, opts: RenderOptions = {}): string {
allowedAttributes: {
...sanitizeHtml.defaults.allowedAttributes,
img: ["src", "alt", "height", "width", "align"],
video: ["src", "alt", "height", "width"],
video: [
"src",
"alt",
"height",
"width",
"autoplay",
"muted",
"loop",
"playsinline",
],
a: ["id", "aria-hidden", "href", "tabindex", "rel"],
svg: ["viewbox", "width", "height", "aria-hidden"],
path: ["fill-rule", "d"],
Expand Down

0 comments on commit cbef8d2

Please sign in to comment.