Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JKRhb opened this issue Dec 7, 2024 · 1 comment
Open

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

JKRhb opened this issue Dec 7, 2024 · 1 comment

Comments

@JKRhb
Copy link

JKRhb commented Dec 7, 2024

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.

@isoos isoos added the Type: bug label Dec 9, 2024
@isoos
Copy link
Collaborator

isoos commented Dec 9, 2024

This is a bug in package:markdown, I've filed an issue here: dart-lang/tools#1457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants