Video
Embedded YouTube and Vimeo videos
Last updated March 17, 2026
Embed videos from YouTube or Vimeo with a simple code fence. Videos render as responsive iframes with lazy loading and privacy-enhanced mode.
Usage
Use the youtube or vimeo code fence with the video ID as
content:
```youtube
dQw4w9WgXcQ
```
```vimeo
123456789
```
The video ID is the part after watch?v= for YouTube or
after vimeo.com/ for Vimeo.
Examples
YouTube
Vimeo
API reference
Video properties
| Property | Type | Default | Description |
|---|---|---|---|
platform | "youtube" \| "vimeo" | required | Code fence language determines the platform |
id | string | required | Video ID (content of the code fence) |

