Is the default behavior to apply style="height: 0px;"
to images in revealjs presentations?
#12213
-
DescriptionI have a few revealjs presentations where I reference images via the following syntax:
I have noticed that this is rendered to the following image class in the output (without any custom css applied):
The I want images to stretch the width of the slide by default, so my current workaround is to set custom on the project level to include the following, but maybe there is a simpler way to achieve this: .reveal img {
height: unset !important;
max-width: 100% !important;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. Also, see the Reveal.js Quarto guide especially the part about auto-stretch feature. Note that I cannot reproduce: ---
title: "Reproducible Quarto Document"
format: revealjs
engine: markdown
---
## Slide 1
 ![]() You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks.
Also, see the Reveal.js Quarto guide especially the part about auto-stretch feature.
Note that I cannot reproduce:
You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four
````
).