YouTube Clip embeds not working #596

Closed
opened 2026-01-29 14:40:39 +00:00 by claunia · 1 comment
Owner

Originally created by @AlexMedia on GitHub (Feb 26, 2023).

When using the media links extension, embedding YouTube clips from live streams does not seem to work.

Sample code:

![youtube](https://www.youtube.com/clip/UgkxDOpxfUB4DgnhIZV2CfDqkzXgLgBnSNYu)

For me, it gets rendered as a regular <img> tag with its src set to the URL provided, rather than generating an iframe with the embed.

Originally created by @AlexMedia on GitHub (Feb 26, 2023). When using the media links extension, embedding YouTube clips from live streams does not seem to work. Sample code: ``` ![youtube](https://www.youtube.com/clip/UgkxDOpxfUB4DgnhIZV2CfDqkzXgLgBnSNYu) ``` For me, it gets rendered as a regular `<img>` tag with its `src` set to the URL provided, rather than generating an iframe with the embed.
claunia added the invalid label 2026-01-29 14:40:39 +00:00
Author
Owner

@xoofx commented on GitHub (Feb 27, 2023):

You need to replace clip by embed:

![youtube](https://www.youtube.com/embed/UgkxDOpxfUB4DgnhIZV2CfDqkzXgLgBnSNYu)

I had to look at the code, the "media link specs" doesn't mention this explicitly but the examples have embed or watch.

@xoofx commented on GitHub (Feb 27, 2023): You need to replace `clip` by `embed`: ```md ![youtube](https://www.youtube.com/embed/UgkxDOpxfUB4DgnhIZV2CfDqkzXgLgBnSNYu) ``` I had to look at the code, the ["media link specs"](https://github.com/xoofx/markdig/blob/master/src/Markdig.Tests/Specs/MediaSpecs.md) doesn't mention this explicitly but the examples have `embed` or `watch`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#596