File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
src/resources/extensions/quarto/video
tests/docs/smoke-all/video Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ All changes included in 1.8:
54
54
55
55
- ([ #12727 ] ( https://github.com/quarto-dev/quarto-cli/issues/12727 ) ): Do not crash in the presence of malformed tabset contents.
56
56
- ([ #12806 ] ( https://github.com/quarto-dev/quarto-cli/pull/12806 ) ): Use pandoc APIs to handle codepage conversion on Windows.
57
+ - ([ #12811 ] ( https://github.com/quarto-dev/quarto-cli/pull/12811 ) ): Add support for YouTube Shorts in ` video ` shortcode.
57
58
58
59
## Commands
59
60
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ local youTubeBuilder = function(params)
78
78
if not (params and params .src ) then return nil end
79
79
local src = params .src
80
80
match = checkMatchStart (src , ' https://www.youtube.com/embed/' )
81
+ match = match or checkMatchStart (src , ' https://www.youtube.com/shorts/' )
81
82
match = match or checkMatchStart (src , ' https://www.youtube%-nocookie.com/embed/' )
82
83
match = match or checkMatchStart (src , ' https://youtu.be/' )
83
84
match = match or string.match (src , ' %?v=(.-)&' )
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ _quarto:
35
35
36
36
- ' #brightcove-test iframe[src$="https://players.brightcove.net/1460825906/default_default/index.html?videoId=5988531335001"]'
37
37
38
+ - " #youtube-short-test .quarto-video.ratio.ratio-16x9"
39
+ - ' #youtube-short-test iframe[src$="https://www.youtube.com/embed/Kra3uHSIuBY"]'
40
+
38
41
---
39
42
40
43
::: {#video-js-test}
@@ -106,3 +109,9 @@ _quarto:
106
109
{{< video https://players.brightcove.net/1460825906/default_default/index.html?videoId=5988531335001 >}}
107
110
108
111
:::
112
+
113
+ ::: {#youtube-short-test}
114
+
115
+ {{< video https://www.youtube.com/shorts/Kra3uHSIuBY >}}
116
+
117
+ :::
You can’t perform that action at this time.
0 commit comments