YouTube (::youtube)
The YouTube directive allows you to embed playable YouTube videos in your content.
Syntax
Markdown
::youtube[Optional Title]{id='VIDEO_ID'}
::youtubeis the directive name[Optional Title]is an optional, accessible title for the video{id='VIDEO_ID'}is the required parameter with the YouTube video ID
How to Get the Video ID
The video ID is the part after v= in a YouTube URL. For example, in https://www.youtube.com/watch?v=1cJ0XYaARBY, the ID is 1cJ0XYaARBY.
Example:
Markdown
::youtube{id='1cJ0XYaARBY'}
Output: