Video
Embed video from YouTube, Vimeo, or a local file.
Video embeds a YouTube, Vimeo, or local video file. Platform is detected automatically from the URL.
Syntax
::video[https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ]Supported Platforms
| Platform | Format |
|---|---|
| YouTube | youtube.com/watch?v=ID or youtu.be/ID |
| YouTube Shorts | youtube.com/shorts/ID — embedded as 9 |
| Vimeo | vimeo.com/123456789 |
| Local file | /videos/file.mp4 — renders as native <video> |
Attributes
| Attribute | Description |
|---|---|
width |
Video width (default: 100%) |
height |
Video height (default: 400) |
title |
Accessibility label (default: "Video embed") |
Notes
- Renders with a 16 aspect ratio by default
- Local files use a native
<video>element titleis used by screen readers