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.

On Wednesday, 5 January 2022 at 16:06:26 UTC-5 Joseph wrote:
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

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/96ebec32-6e13-49f2-9fe9-bbcfbb74f47bn%40googlegroups.com.