greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.46k stars 435 forks source link

Resolve relative URLs correctly #1330

Open PRO-2684 opened 1 day ago

PRO-2684 commented 1 day ago

I noticed that if you use relative URL for images, like ![](./image.jpg), it will render correctly on GitHub, as expected. But synced readmes on GreasyFork does not resolve this and gives an empty <img> tag. I suggest that GreasyFork should resolve the relative URL based on the provided readme URL.

JasonBarnabe commented 1 day ago

There is code to do this, but I'm guessing it only works when using HTML and not Markdown.

PRO-2684 commented 1 day ago

There is code to do this, but I'm guessing it only works when using HTML and not Markdown.

Is it possible to port this to Markdown? I think it would be great.