pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

URL with percent-encoded `#` in README is not working on pub.dev

Open JKRhb opened this issue 10 months ago • 1 comments

The README file of a package I am maintaining contains the following image URL pointing to a badge on shields.io:

https://img.shields.io/badge/Show%20Adopters%20and%20Users-%2331b8a3ff?logoColor=31b8a3ff

Note that before the first 31b8a3ff, there is a percent-encoded #, represented by %23.

When uploading the package to pub.dev, the URL above gets turned into

https://img.shields.io/badge/Show%20Adopters%20and%20Users-#31b8a3ff?logoColor=31b8a3ff

within the rendered README file, which causes the linked image to not be displayed correctly on pub.dev.

JKRhb avatar Dec 07 '24 19:12 JKRhb