File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
src/resources/extensions/quarto/video
tests/docs/smoke-all/2022/11/14 Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ ## Miscellaneous
12
3+ - ensure ` video ` shortcode works with ` embed-resources ` and ` self-contained ` ([ #3310 ] ( https://github.com/quarto-dev/quarto-cli/issues/3310 ) )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ local youTubeBuilder = function(params)
7777 local YOUTUBE_EMBED = ' https://www.youtube.com/embed/'
7878 params .src = YOUTUBE_EMBED .. match
7979
80- local SNIPPET = [[ <iframe src="{src}{start}"{width}{height} title="{title}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>]]
80+ local SNIPPET = [[ <iframe data-external="1" src="{src}{start}"{width}{height} title="{title}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>]]
8181 snippet = replaceCommonAttributes (SNIPPET , params )
8282
8383 local result = {}
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Quarto"
3+ format :
4+ html :
5+ toc : true
6+ # self-contained: true
7+ _quarto :
8+ tests :
9+ html :
10+ ensureHtmlElements :
11+ - ["iframe[data-external=\"1\"]"]
12+ ---
13+ {{< video https://www.youtube.com/embed/wo9vZccmqwc >}}
You can’t perform that action at this time.
0 commit comments