div directly containing one or more images #3136
-
Hello, I'm looking for a way to create a div with which directly contains images. One smaller problem is that Quarto wraps the images in More importantly, if the wrapping Example:
Expected/Desired:
Result:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A workaroundIf you're looking for a specific DOM structure like this, then a workaround might be to use raw html. Instead of
You can write
This does mean that Pandoc filters will not recognize that div, but that might be acceptable in your case. Your actual questionNow to your actual question: I think what's happening is that quarto is getting overeager in detecting your image as a figure, and then inserting all the scaffolding necessary for captions, labels, etc (eg. the paragraph you're seeing). It would be good if that treatment were more robust, but we're in the process of overhauling that entire system for 1.3, so I don't want to try and create a partial fix right now. |
Beta Was this translation helpful? Give feedback.
A workaround
If you're looking for a specific DOM structure like this, then a workaround might be to use raw html. Instead of
You can write
This does mean that Pandoc filters will not recognize that div, but that might be acceptable in your case.
Your actual question
Now to your actual question: I think what's happening is that quarto is getting overeager in detecting your image as a figure, and then inserting all the scaffolding necessary for captions, labels, etc (eg. the paragraph you're seeing).…