Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
go.dev: include '¶' permalinks in all package doc subheadings #36808
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36
What did you do?
Tried to link to the "Benchmarks" subsection of the
What did you expect to see?
Each subheading to be a link such that hovering over it (the heading) a
Clicking that link should then change to the address bar URL to include the fragment. For example on godoc, for the "Benchmarks" subsection we end up with the URL:
What did you see instead?
No ability to link to subsections of package documentation.
Would you mind clarifying if you are able to link subsections today using the same URL scheme from godoc.org? For example:
My understanding is that this issue is specifically asking to add a clickable
As you demonstrated, that appears to work (not that I had tried)
Exactly, as per the original description:
This fix has been deployed and it's working as expected. For example, see:
Note that it may not appear on some existing package versions until they've been reprocessed, but they should work on all new versions. Please let us know if you spot any other issues.