Skip to content

Release 1.8.3 - #265

Merged
Ramon-Jimenez merged 3 commits into
masterfrom
development
Oct 20, 2026
Merged

Ramon-Jimenez merged 3 commits into
masterfrom
development

Conversation

@Ramon-Jimenez

Copy link
Copy Markdown
Contributor

📌 References

📝 Implementation

  • Release 1.8.3. The only functional change since 1.8.2 is fix: allow autoplay attributes on <video> in markdown #261: the sanitizer allowlist for <video> now uses the attribute names the markdown pipeline actually produces (playsInline, autoPlay, muted), so those attributes are no longer stripped from module pages. mute was also replaced by muted, which is the real attribute name.

📹 Screenshots/Screen capture

🔥 How to test it? (If there is any special consideration or the reviewer does not know how to test it)

  • Open a module whose page contains <video src="../../documents/<id>/data" autoplay muted playsinline controls></video>. The video should start on its own, muted. Before this change the three attributes were removed by the sanitizer and the video stayed paused.

📑 Others

  • Any change in the API repo? If so, what branch/PR?
  • Any change in the GUI library? If so, what branch/PR?

🤖 Generated with Claude Code

Ramon-Jimenez and others added 3 commits August 24, 2026 13:54
The sanitizer allowlist for <video> spelled three attributes in lowercase
HTML form, but hast normalises attributes to their DOM property names
before sanitizing. The comparison never matched, so the attributes were
silently stripped:

  autoplay    -> autoPlay      stripped
  playsinline -> playsInline   stripped
  mute        -> (not a real HTML attribute at all)

Only src, controls and loop were getting through, which meant autoplay
could not be enabled on a <video> from markdown at all. <video-gif> was
unaffected because its autoPlay/muted/playsInline are hardcoded props on
the React component and never pass through the sanitizer.

Spelling them the way hast stores them lets them through:

  <video src="..." autoplay muted playsinline controls></video>

Note that browsers only autoplay muted video, so `muted` is required
alongside `autoplay` for it to actually start.
fix: allow autoplay attributes on <video> in markdown
@bundlemon

bundlemon Bot commented Oct 20, 2026

Copy link
Copy Markdown

BundleMon

No change in files bundle size

Unchanged groups (1)
Status Path Size Limits
✅ Build Folder
./**/*
10.47MB +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@Ramon-Jimenez
Ramon-Jimenez merged commit 131c8eb into master Oct 20, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant