Skip to content

Commit 217a27b

Browse files
committed
feat: add youtube short support for video shortcode
1 parent 7e98950 commit 217a27b

File tree

1 file changed

+1
-0
lines changed
  • src/resources/extensions/quarto/video

1 file changed

+1
-0
lines changed

src/resources/extensions/quarto/video/video.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ local youTubeBuilder = function(params)
7878
if not (params and params.src) then return nil end
7979
local src = params.src
8080
match = checkMatchStart(src, 'https://www.youtube.com/embed/')
81+
match = match or checkMatchStart(src, 'https://youtube.com/shorts')
8182
match = match or checkMatchStart(src, 'https://www.youtube%-nocookie.com/embed/')
8283
match = match or checkMatchStart(src, 'https://youtu.be/')
8384
match = match or string.match(src, '%?v=(.-)&')

0 commit comments

Comments
 (0)