Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

[BUG] Should use githubusercontent for img tags as well as image markdown #450

Open
tolmasky opened this issue Jan 14, 2021 · 0 comments
Open

Comments

@tolmasky
Copy link

What / Why

If you pass a package object to the options, it will helpfully take relative path images and point them at githubusercontent.com. However, if the user has used an img tag with a relative path, the same transformation is not applied. This leads to some images being broken on npmjs.com, while working fine on github. Here is one example of a package experiencing this (not mine):

https://www.npmjs.com/package/puppeteer-extra-plugin-stealth

It would be nice to apply this same rewriting to githubusercontent URL here.

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

No branches or pull requests

1 participant