Skip to content

Rewrite GitHub blob image URLs in README to raw.githubusercontent.com - #9178

Closed
Yihun-Alemayehu wants to merge 1 commit into
dart-lang:masterfrom
Yihun-Alemayehu:fix/rewrite-github-image-links
Closed

Rewrite GitHub blob image URLs in README to raw.githubusercontent.com#9178
Yihun-Alemayehu wants to merge 1 commit into
dart-lang:masterfrom
Yihun-Alemayehu:fix/rewrite-github-image-links

Conversation

@Yihun-Alemayehu

Copy link
Copy Markdown

This PR addresses issue #9156
by rewriting GitHub blob image URLs in package README files to use raw.githubusercontent.com, ensuring that images render correctly on pub.dev.

Changes:

  • Added rewriteGithubImagesInMarkdown helper in known_templates.dart to convert GitHub blob links to raw URLs.
  • Updated known_templates_test.dart with a new test to verify that image URLs are rewritten correctly.
  • No other functionality was modified.

Test Plan:

  • Added a unit test for the new helper function.
  • All existing tests pass using dart test.

Fixes: #9156

  • [✔️] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Fixes dart-lang#9156. Added rewriteGithubImagesInMarkdown helper and test.
@isoos

isoos commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Closing this as the underlying issue has been fixed with the image proxy work we have done earlier this year.

@isoos isoos closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite github image links in README.md to use https://raw.githubusercontent.com

2 participants