MARP: How to embed an iframe in the presentation?

1.4k Views Asked by At

I would like to embed an .html file in my MARP presentation, like an interactive chart for example.

Is there a way to do this?

I guess this issue was relevant but in previous version of MARP.

2

There are 2 best solutions below

0
On

Noticed it works if --html is passed to the cli.

https://github.com/marp-team/marp-core/pull/9

0
On

This wasn't working for me because of something weird going on with the closing tag. I fixed it by adding an explicit one:

bad
<iframe src="https://example.com"/>

good
<iframe src="https://example.com"></iframe>