Reputation: 1
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
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.
And there are some size options.
/default
, /1
, /2
, /3
/mqdefault
/hqdefault
/sddefault
/maxresdefault
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)
minute&second
[![Black Widow](https://img.youtube.com/vi/Fp9pNPdNwjI/mqdefault.jpg)](https://youtu.be/Fp9pNPdNwjI?t=1m24s)
hour&minute&second
[![The Greatest Showman](https://img.youtube.com/vi/gQa8bAtZkiY/mqdefault.jpg)](https://youtu.be/gQa8bAtZkiY?t=1h5m10s)
Upvotes: 3