Quarto HTML document does not display images from external direct download links to a publicly accessible cloud share provider (in this case Keeper, based on Seafile).
The problem does not occur for e.g., the GitHub README.md file.
The direct download link you used https://keeper.mpdl.mpg.de/f/ec510a79d3ab495eaf67/?dl=1 is a link with redirect.
it seems that Pandoc won't follow redirect and will do the same as in a browser. If I paste the link inside the browser I can this page https://keeper.mpdl.mpg.de/f/ec510a79d3ab495eaf67/?dl=1.png
Hi @cderv, thank you so much for your response and looking into this!
I would be fine with replacing / modifying the URL, but I couldn't find a way how to.
I rely on this approach quite a lot (i.e., uploading static files to a cloud share and embedding them via links) to avoid bloating my repositories, so a solution would be brilliant.
BTW, providing a direct download link to an image works when using the About Pages and specifying image in the YAML header.
I've updated the example website to demonstrate this aspect.
Does this correctly suggest that Quarto uses a different download method for links in the YAML header compared to links inside the document?
Yes - I think the image field it handled by Quarto where we download the image, whereas when in a link, this is a Pandoc issue where the download happens but without redirect it seems.
A workaround for a project would be Project script that you could run once in a while, or as a pre render script, to download and update the image locally to the project. Not as good as linking to those, but we need to either make it happen in Quarto, or Pandoc should solve this.