Thanks for bringing this up. I have a long-running battle with reveal to get images to display how I want them too (mainly taking up as much space as possible without being distorted since I use it for lecture slides). Going to play with this a bit.
I'd love to use revealjs's `r-fit-text` and `r-stretch` [1] in the new year, but they don't work with decks generated by pandoc.
`r-fit-text` doesn't work because pandoc applies the class to both the heading and the section, and so the element gets a double dose of movement [2].
And an `img.r-stretch` must be a child of the section, and pandoc typically puts img in another element (e.g., `p`).
Does anyone have any hacks for using these? Or, if this pandoc generated structure isn't likely to change, perhaps we should put a request in to Hakim to accommodate the pandoc structure?
[1]: https://revealjs.com/layout/#fit-text
[2]: https://github.com/jgm/pandoc/issues/5965#issuecomment-862314880