Skip to content

Commit ebf47b8

Browse files
authored
Support privacy-enhanced youtube url (-nocookie version) for video shortcode (#4062)
* Support privacy-enhanced youtube url (-nocookie version) for video shortcode * Add to changelog [skip ci]
1 parent f9cdaa9 commit ebf47b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

news/changelog-1.3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
- ensure proof titles are appended to paragraph nodes ([#3772](https://github.com/quarto-dev/quarto-cli/issues/3772)).
118118
- Support parsing markdown in table captions in LaTeX and HTML tables ([#2573](https://github.com/quarto-dev/quarto-cli/issues/2573)).
119119
- Improve parsing of include shortcodes ([#3159](https://github.com/quarto-dev/quarto-cli/issues/3159)).
120+
- Add support for Youtube privacy-enhanced urls in `video` shortcodes ([#4060](https://github.com/quarto-dev/quarto-cli/issues/4060)).
120121

121122
## Pandoc filter changes
122123

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ local youTubeBuilder = function(params)
6868
if not (params and params.src) then return nil end
6969
local src = params.src
7070
match = checkEndMatch(src, 'https://www.youtube.com/embed/')
71+
match = match or checkEndMatch(src, 'https://www.youtube%-nocookie.com/embed/')
7172
match = match or checkEndMatch(src, 'https://youtu.be/')
7273
match = match or string.match(src, '%?v=(.-)&')
7374
match = match or string.match(src, '%?v=(.-)$')

0 commit comments

Comments
 (0)