-
-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src attribute overwritten, making iframe ineffective #2255
Comments
As an additional datapoint, you don't even need the
After you turn it into HTML, the iframe has the same issue as mentioned above. Not being able to have YouTube videos embedded in RMarkdown files seems like meaningful issue to me, as you might want to use videos as part of tutorials or lessons. |
This behavior comes from You have two choices to workaround.
|
Note that this is the feature of pandoc and is not a bug. |
Thanks @atusy for the quick help and answer ! This is indeed something that comes from Pandoc since 2.11.2 I believe. Pandoc will now encode a wider range of component. You need to use To simplify that, note that since knitr 1.34 for vembedr, maybe knitr function could be used maybe to benefit from knit_print and sewing method in knitr. If you're ok with it, maybe we could close this issue ? |
Please do note hesitate. You can also ping me in any PR / issue in vembedr |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
There is a problem with vembedr which I (think I) have traced back to here. This was first raised by @jnolis, in a tweet.
Here's my example Rmd:
In the past, the
<iframe src>
attribute would be written verbatim to the HTML file.Currently, something happens to it, and it doesn't work:
My suspicion is that the change happened in #2151 (of course, I could be wrong).
I don't know enough about html-dependencies to be effective to diagnose further, but I stand ready to help.
Thanks!
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
formatted your issue so it is easier for us to read?
included a minimal, self-contained, and reproducible example?
pasted the output from
xfun::session_info('rmarkdown')
in your issue?upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
installed and tested your bug with the development version of the rmarkdown package using
remotes::install_github("rstudio/rmarkdown")
?The text was updated successfully, but these errors were encountered: