Skip to content

Extract embeddable links and prepend embeds#312

Merged
zainforbjs merged 1 commit intomainfrom
fix/video-embedding
Mar 6, 2026
Merged

Extract embeddable links and prepend embeds#312
zainforbjs merged 1 commit intomainfrom
fix/video-embedding

Conversation

@zainforbjs
Copy link
Collaborator

Collects unique URLs from the input, separates embeddable URLs (YouTube/etc.) from regular links, and renders embeddable iframes at the top of the content. Replaces getEmbedHtml calls to include explicit dimensions ("100%", "600"), removes embeddable URLs from the body so they don't appear twice, and then auto-links remaining URLs into anchor tags. Also fixes matching to use arguments.content consistently and introduces a styled wrapper for embedded media items.

Collects unique URLs from the input, separates embeddable URLs (YouTube/etc.) from regular links, and renders embeddable iframes at the top of the content. Replaces getEmbedHtml calls to include explicit dimensions ("100%", "600"), removes embeddable URLs from the body so they don't appear twice, and then auto-links remaining URLs into anchor tags. Also fixes matching to use arguments.content consistently and introduces a styled wrapper for embedded media items.
@zainforbjs zainforbjs merged commit f7af933 into main Mar 6, 2026
1 check passed
@zainforbjs zainforbjs deleted the fix/video-embedding branch March 6, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant