obsidian-advanced-slides icon indicating copy to clipboard operation
obsidian-advanced-slides copied to clipboard

Include custom javascript or custom revealjs plugins

Open rskuipers opened this issue 2 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. I wanted to add some interactivity to my slides, so I tried including a <script></script> tag but that didn't seem to get picked up. I also found no way (aside from directly modifying the advanced slides plugin) to include a custom javascript file.

Describe the solution you'd like Maybe an additional "scripts" config in frontmatter, just like "css", to include custom javascript files. Or some other way to load a revealjs plugin.

Describe alternatives you've considered I can do <img src onerror="alert('hi')"> and inject a new script tag into the head like this, but that's a pretty extreme hack.


I'm mostly curious whether I overlooked any other options. I don't mind having a go at a Pull Request if someone can give me some pointers on how we can implement this properly.

rskuipers avatar Dec 14 '22 15:12 rskuipers

The possibility of adding script files is something i am missing too. This will be subject of the next major release.

MSzturc avatar Feb 15 '23 17:02 MSzturc