Skip to content
This repository was 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

@tolmasky

Description

@tolmasky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions