If more than one listing is created for a page, and if the "image-placeholder" option is used for the listings, the image used as placeholder in all listings is the one for the first listing. Sometimes no image placeholder is shown, however I could not get a reproducible example of this case.
This issue may be related to #6447 and it's present in Quarto version 1.4.554.
Steps to reproduce
Create a project and example folders and files:
quarto create project website mysite
cd mysite
mkdir posts tutorials things
Edit index.qmd so that it contains several listings using image-placeholder:
---
title: "Mysite"
listing:
- id: posts
contents: posts/*.qmd
image-placeholder: https://quarto.org/quarto.png
- id: tutorials
contents: tutorials/*.qmd
image-placeholder: https://quarto.org/docs/authoring/images/html-figure.png
- id: things
contents: things/*.qmd
image-placeholder: https://quarto.org/docs/authoring/images/elephant-subfigures.png
---
:::{#posts}
:::
This is a Quarto website.
To learn more about Quarto websites visit <https://quarto.org/docs/websites>.
:::{#tutorials}
:::
Create example files:
posts/post1.qmd:
---
title: 'Post 1'
---
Hello
tutorials/tutorial1.qmd:
---
title: 'Tutorial'
---
# My tutorial
things/thing1.qmd:
---
title: 'A thing'
---
# This is an example
Expected behavior
Each listing element should display its corresponding image placeholder.
Actual behavior
All listings display the image placeholder from the first listing:
Your environment
IDE: VIM - Vi IMproved 8.2
Operating system: Linux Xubuntu 22.04.3 LTS
Bug description
If more than one listing is created for a page, and if the "image-placeholder" option is used for the listings, the image used as placeholder in all listings is the one for the first listing. Sometimes no image placeholder is shown, however I could not get a reproducible example of this case.
This issue may be related to #6447 and it's present in Quarto version 1.4.554.
Steps to reproduce
Create a project and example folders and files:
Here is the project structure:
Edit
index.qmd
so that it contains several listings usingimage-placeholder
:Create example files:
posts/post1.qmd
:tutorials/tutorial1.qmd
:things/thing1.qmd
:Expected behavior
Each listing element should display its corresponding image placeholder.
Actual behavior
All listings display the image placeholder from the first listing:
Your environment
IDE: VIM - Vi IMproved 8.2 Operating system: Linux Xubuntu 22.04.3 LTS
Quarto check output
No response