Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion news/changelog-1.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ All changes included in 1.8:

- ([#12727](https://github.com/quarto-dev/quarto-cli/issues/12727)): Do not crash in the presence of malformed tabset contents.
- ([#12806](https://github.com/quarto-dev/quarto-cli/pull/12806)): Use pandoc APIs to handle codepage conversion on Windows.
- ([#12811](https://github.com/quarto-dev/quarto-cli/pull/12811)): Add support for YouTube Shorts in `video` shortcode.

## Commands

Expand All @@ -63,4 +64,4 @@ All changes included in 1.8:
## Other fixes and improvements

- ([#11321](https://github.com/quarto-dev/quarto-cli/issues/11321)): Follow [recommendation from LaTeX project](https://latex-project.org/news/latex2e-news/ltnews40.pdf) and use `lualatex` instead of `xelatex` as the default PDF engine.
- ([#12782](https://github.com/quarto-dev/quarto-cli/pull/12782)): fix bug on `safeRemoveDirSync`'s detection of safe directory boundaries.
- ([#12782](https://github.com/quarto-dev/quarto-cli/pull/12782)): fix bug on `safeRemoveDirSync`'s detection of safe directory boundaries.
1 change: 1 addition & 0 deletions src/resources/extensions/quarto/video/video.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ local youTubeBuilder = function(params)
if not (params and params.src) then return nil end
local src = params.src
match = checkMatchStart(src, 'https://www.youtube.com/embed/')
match = match or checkMatchStart(src, 'https://www.youtube.com/shorts/')
match = match or checkMatchStart(src, 'https://www.youtube%-nocookie.com/embed/')
match = match or checkMatchStart(src, 'https://youtu.be/')
match = match or string.match(src, '%?v=(.-)&')
Expand Down
9 changes: 9 additions & 0 deletions tests/docs/smoke-all/video/video-smoke-test.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ _quarto:

- '#brightcove-test iframe[src$="https://players.brightcove.net/1460825906/default_default/index.html?videoId=5988531335001"]'

- "#youtube-short-test .quarto-video.ratio.ratio-16x9"
- '#youtube-short-test iframe[src$="https://www.youtube.com/embed/Kra3uHSIuBY"]'

---

::: {#video-js-test}
Expand Down Expand Up @@ -106,3 +109,9 @@ _quarto:
{{< video https://players.brightcove.net/1460825906/default_default/index.html?videoId=5988531335001 >}}

:::

::: {#youtube-short-test}

{{< video https://www.youtube.com/shorts/Kra3uHSIuBY >}}

:::
Loading