在 Quarto html 中嵌入网页

Maë*_*aël 3 html embed reveal.js quarto

有没有办法将网页嵌入到四开reveal.js或 HTML 输出中?

到目前为止,有文档将 IFrame 作为 的交互式背景reveal.js,但这并不是很灵活。

可重现的例子:

---
format: revealjs
---

## A title

I'd like to embed [this webpage](https://example.com/).
Run Code Online (Sandbox Code Playgroud)

Maë*_*aël 6

您可以使用 HTML 块来=html嵌入网页,并且它是交互式的。这适用于 HTML 和 Revealjs 输出。

---
format: revealjs
---

## A title

```{=html}
<iframe width="780" height="500" src="https://example.com/" title="Webpage example"></iframe>
```
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述