Skip to content

feat: Add support for YouTube Shorts in video shortcode#12811

Merged
cscheid merged 6 commits intoquarto-dev:mainfrom
mcanouil:feat/support-youtube-short
May 23, 2025
Merged

feat: Add support for YouTube Shorts in video shortcode#12811
cscheid merged 6 commits intoquarto-dev:mainfrom
mcanouil:feat/support-youtube-short

Conversation

@mcanouil
Copy link
Copy Markdown
Collaborator

Introduce support for YouTube Shorts in the video shortcode to enhance video embedding capabilities. This change allows users to include YouTube Shorts links seamlessly.

@mcanouil mcanouil self-assigned this May 23, 2025
@posit-snyk-bot
Copy link
Copy Markdown
Collaborator

posit-snyk-bot commented May 23, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@mcanouil
Copy link
Copy Markdown
Collaborator Author

mcanouil commented May 23, 2025

The dropbox video was deleted: https://github.com/quarto-dev/quarto-cli/blob/main/tests/docs/smoke-all/video/video-smoke-test.qmd#L48

It seems the tests are not good as they don't catch issues with videos.

Copy link
Copy Markdown
Member

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thanks !

The dropbox video was deleted: main/tests/docs/smoke-all/video/video-smoke-test.qmd#L48

It seems the tests are not good as they don't catch issues with videos.

About thus, I agree this is not ideal.

Though the tests are primarly there to check that our Lua filter to create the right syntax with video.js

They are not there to test that the resources are working. We could consider that even with a non working dropbox video link, the test is still valid because we are creating the correct HTML content from the video shortcode. The video not working is another issue; I wouldn't this Lua filter video shortcode test to fail because of that.

It is probably also hard to check as the link does not return 404.
This would probably require playwright, and check that video.js can load the file. 🤷

This would be a good integration test to detect early that somehow video.js is not working as expected, or that video is no more there.

Did you have another idea ?

@mcanouil
Copy link
Copy Markdown
Collaborator Author

Did you have another idea ?

Not really, I was mentioning it as I noticed the video was gone when adding the new test.

@cderv
Copy link
Copy Markdown
Member

cderv commented May 23, 2025

Not really, I was mentioning it as I noticed the video was gone when adding the new test.

Ok, I don't know which video it was - so not sure if there is another one we could use that will stay 🤔
Maybe one from a dropdox doc example 🤷‍♂️

@cscheid
Copy link
Copy Markdown
Member

cscheid commented May 23, 2025

Looks great, thank you!

@cscheid cscheid merged commit 245560d into quarto-dev:main May 23, 2025
49 checks passed
@mcanouil mcanouil deleted the feat/support-youtube-short branch July 15, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants