The :::oembed block embeds rich content from any oEmbed-compatible
provider. The provider's HTML embed code is fetched at render time and
baked into the cached page.
::: oembed
https://www.youtube.com/watch?v=VIDEO_ID
:::
Built-in endpoint mappings for fast resolution:
youtube.com/watch, youtu.be/)vimeo.com/)twitter.com/, x.com/)soundcloud.com/)/videos/watch/, /videos/embed/) - via autodiscoveryAny other provider that supports oEmbed autodiscovery (a <link> tag
with type="application/json+oembed") also works automatically.
---
title: Conference Talks
---
::: oembed
https://www.youtube.com/watch?v=dQw4w9WgXcQ
:::
::: oembed
https://vimeo.com/123456789
:::
On success, the embed HTML is wrapped in <div class="oembed">.
On failure (no endpoint found, fetch failed, or missing html field
in the JSON response), the URL is rendered as a clickable link inside
<div class="oembed oembed--failed">. A warning is written to the
error log.
format=json)html field is inserted as-is - restrict the
provider list to trusted hosts if this is a concern