Arbitrary HTML/JavaScript inside a slide - useful for live demos #593
-
Would it be possible to include arbitrary HTML and/or JavaScript inside a slide? Let's say I'm making a presentation about some web technology. It would be cool to embed arbitrary HTML in the middle of the slide, so I can interact with the thing as a live demo. Sure, that makes it impossible to export as anything other than HTML. But having a smooth live demo during a presentation is worth it. I also understand this can come with security concerns, specifically when opening marp slides from other people. But right now I'm opening this as a discussion, and trying to understand what's currently possible. What I've tried already:
Untested:
Since the demo I was trying to create was pure CSS, I could implement it using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Of course it's already available. Use the |
Beta Was this translation helpful? Give feedback.
Of course it's already available. Use the
--html
option to allow any HTML tag in Marp CLI.https://github.com/marp-team/marp-cli#:~:text=Marpit%20based%20engine-,html,-boolean%20%7C%20object