quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.96k stars 326 forks source link

Non-standard URLs display correctly inline but not on image grid #5005

Closed richardsprague closed 1 year ago

richardsprague commented 1 year ago

Bug description

Note the weird non-standard URL below (contains commas and other punctuation)

---
title: Clabbered milk
date: '2017-02-02'
categories:
  - food
---

Here is a blog post, blah blah.

Note how the following images both display just fine from within this post.

![another image from the web](http://assets.bonappetit.com/photos/57bf31396a6acdf3485df7f9/5:4/w_1028,c_limit/koji-steak-1.jpg)

![](diet-assets/clabberedMilk.jpg)

But inside the grid view, the image preview is broken.

Find a working full example at this repo: richardsprague/quartosample: extrapage

Using 1.3.294 on a Mac OS 13.2

Checklist

richardsprague commented 1 year ago

oh btw, the grid view preview image is correct if you explicitly add the metadata in the header:

---
title: Clabbered milk
date: '2017-02-02'
image: 'http://assets.bonappetit.com/photos/57bf31396a6acdf3485df7f9/5:4/w_1028,c_limit/koji-steak-1.jpg'
---
cscheid commented 1 year ago

Thanks for all the reports, by the way!

If you have a public quarto repository that's causing these issues for you, we'd love to know about it so we can track regressions earlier in our release cycle and save you the trouble of reporting them.