Олег
Олег

Reputation: 1

youtube video size in markdown

I'm trying to set size/dimension to the markdown youtube video

![](https://youtu.be/zNzZ1PfUDNk){width="90%"} 
![](https://youtu.be/zNzZ1PfUDNk){width="500" height="200"}

but it diesn't work. Maybe there are some other ways(through the url etc)?I need to set size exactly in markdown

Upvotes: 0

Views: 1503

Answers (1)

elena.kim
elena.kim

Reputation: 958

Markdown does not support video embed by default, but you can use images to link YouTube video.

[![Black Widow](https://img.youtube.com/vi/Fp9pNPdNwjI/default.jpg)](https://www.youtube.com/watch?v=Fp9pNPdNwjI) 

Fp9pNPdNwjI is the unique address of the video and you can check the YouTube video link. enter image description here


And there are some size options.

/default, /1, /2, /3

Black Widow
Black Widow
Black Widow
Black Widow

/mqdefault

Black Widow

/hqdefault

Black Widow

/sddefault

Black Widow

/maxresdefault

Black Widow


You can also specify the start point of the video when the image is clicked.
Just add ?t= followed by The unique code of the video link.

second

[![Black Widow](https://img.youtube.com/vi/Fp9pNPdNwjI/mqdefault.jpg)](https://youtu.be/Fp9pNPdNwjI?t=29)  

Black Widow

minute&second

[![Black Widow](https://img.youtube.com/vi/Fp9pNPdNwjI/mqdefault.jpg)](https://youtu.be/Fp9pNPdNwjI?t=1m24s)

Black Widow

hour&minute&second

[![The Greatest Showman](https://img.youtube.com/vi/gQa8bAtZkiY/mqdefault.jpg)](https://youtu.be/gQa8bAtZkiY?t=1h5m10s)

The Greatest Showman

Upvotes: 3

Related Questions