Skip to content
Discussion options

You must be logged in to vote

While many markdown implementations (e.g. github, common mark, pandoc) define the link text for images (within []) as the image alt text, quarto seems to use it as the caption instead.

@joelostblom, note that Pandoc does the same thing when the extension implicit_figures is active. And this is the case in Quarto.
See https://pandoc.org/MANUAL.html#extension-implicit_figures

An image with nonempty alt text, occurring by itself in a paragraph, will be rendered as a figure with a caption. The image’s alt text will be used as the caption.

So when using a tool that will use Pandoc, you need to make sure that Images are not considered figures.

Here is an example of different syntax.

---
title

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@joelostblom
Comment options

@mcanouil
Comment options

mcanouil Apr 9, 2024
Collaborator

@joelostblom
Comment options

@mcanouil
Comment options

mcanouil Apr 9, 2024
Collaborator

@joelostblom
Comment options

Comment options

You must be logged in to vote
3 replies
@joelostblom
Comment options

@mcanouil
Comment options

mcanouil Apr 9, 2024
Collaborator

@joelostblom
Comment options

Answer selected by joelostblom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants