Expand description
URL embed synthesizer — provider-aware <iframe> for external URLs.
![[https://...]] wikilink embeds are routed here. detect_provider
matches the URL against known platforms (YouTube, Vimeo, CodePen) and
returns a ProviderEmbed carrying the canonical embed URL plus the
correct allow/sandbox/allowfullscreen attributes. Unknown URLs
fall through to a generic passthrough.
synthesize_url_embed_html combines the provider result with the
pothole params (sizing, alias) and delegates final HTML synthesis to
crate::render::iframe::synthesize_iframe_html.
Structs§
- Provider
Embed - Provider-specific iframe configuration for a matched URL.
Functions§
- detect_
provider - Detect which provider (if any) serves this URL and return the appropriate
ProviderEmbedconfiguration. - synthesize_
url_ embed_ html - Synthesize
<iframe>HTML for an external URL embed.