Author: Gabriel Simmons @g-simmons
This is a Quarto plugin for Reveal.js slides made with Quarto. The plugin wraps the contents of each slide inside a div, except for the first child. This div is then dynamically resized to fit inside the slide, without overflowing.
To use the plugin, add the following YAML metadata to the top of your Quarto file:
output:
quarto::revealjs:
plugins:
- name: "Reveal Slide Contents Wrap"
src: "path/to/reveal-slide-contents-wrap.js"
Make sure to replace path/to/reveal-slide-contents-wrap.js
with the actual path to the JavaScript file containing the plugin.
To use the plugin, simply include an H2 header as the first child of each slide. The rest of the slide content will be wrapped inside a div that is dynamically resized to fit inside the slide. Any overflow is hidden to ensure that all content stays within the boundaries of the slide.
This plugin is released under the MIT License. You are free to use, modify, and distribute it as you see fit, as long as you include the original license and attribution.