mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 21:42:15 +00:00
Support youtu.be, www.youtube.com/embed and t param in media link extension #292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FranklinWhale on GitHub (Apr 29, 2019).
Currently, the Media Link Extension only supports the following YouTube URL pattern:
https://www.youtube.com/watch?v={videoId}However, the URL returned by "Copy video URL" is now in the format below:
https://youtu.be/{videoId}The
tparameter, which specifies the start time of the video, is not processed by the extension. It should be converted to thestartparameter.Finally, YouTube IFrame URL (URL starting with
/embed) may be used directly without any conversion by the Extension.