Closed ZevEisenberg closed 3 weeks ago
Ah, thanks for reporting this, @ZevEisenberg! This must have changed on the GitHub side, as we have some processing code that's supposed to fix them, and they certainly worked until recently. I'll take a look to see what has changed.
I've been reluctant to put a snapshot test in that snapshots the GitHub README API response so we can be aware of rendering changes as I bet it changes all the time. That said, maybe a separate little tool that I run every few weeks might be a good idea.
This is now fixed and deployed to production. Thanks again for the bug report, @ZevEisenberg!
Please describe the bug
In a repo's readme, you can make an anchor link specified like
[Link Name](#AnchorName)
, where#AnchorName
corresponds to a Markdown heading. On GitHub, this is correctly translated into an HTML anchor link that scrolls the page to the relevant section. But when that readme is displayed on the Swift Package Index, the link destination hasuser-content-
prepended to it, which makes it not work.Explain the steps needed to reproduce the bug
Documetation
link.What was the expected behaviour?
Page scrolls or jumps down to the Documentation section.
Screenshots
If applicable, please add screenshots to help explain your problem.
What web browser were you using? (if relevant)
Safari
If you're reporting a bug with the front end, please include your browser information below:
Additional context