URL Embeds
docmd ships natively with the highly-optimised embed-lite parser. It transforms external URLs into secure, zero-latency UI components automatically.
Supported Platforms
The engine natively supports structured formatters for the following networks:
- Video: YouTube (including Shorts), Vimeo, Dailymotion, TikTok
- Social: X (Twitter), Reddit, Instagram, Facebook, LinkedIn
- Code & Prototyping: GitHub Gists, CodePen, Figma, Google Maps
- Music: Spotify, SoundCloud
Syntax Reference
::: embed "target_url"
| Parameter | Type | Description |
|---|---|---|
| URL | "String" |
The absolute URL of the external resource to embed (e.g., a YouTube video, Figma file, or GitHub Gist). |
Examples
Video Embed
Paste any YouTube, Vimeo, or TikTok URL to render a native, responsive player.
::: embed "https://www.youtube.com/watch?v=0CSyIBHQy9g"
Fallback Behaviour
If the parser encounters an unsupported or invalid URL, docmd gracefully falls back to a hyperlink button rather than breaking the page.
::: embed "https://docs.docmd.io/content/containers/embed/"