Skip to content
Discussion options

You must be logged in to vote

A workaround

If you're looking for a specific DOM structure like this, then a workaround might be to use raw html. Instead of

## Title

::: {.image-container .another-class}

![](https://quarto.org/quarto.png)

:::

You can write

## Title

<div class="image-container another-class"><img src="https://quarto.org/quarto.png"/></div>

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).…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PlethoraChutney
Comment options

Answer selected by PlethoraChutney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants