Support anchor links for headings in issues and pull requests #212470
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
One acceptance case I'd add: two comments both contain a heading called Steps to reproduce. Each copied link should land in the correct comment even after an earlier comment is added or edited. Namespacing the heading fragment by the issue body or comment ID would avoid collisions better than one page-wide heading slug. For now, a comment permalink gets readers to the whole comment, but it doesn't solve deep linking within a long issue body. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Other
Body
I'd like to request support for linkable headings (anchor links) inside issue and pull request descriptions and comments, similar to how headings already work in Markdown files in repositories.
Current behavior
When I write a longer issue using Markdown headings (e.g.
## Steps to reproduce,## Proposed solution), these headings are rendered as text. There is no anchor generated, so it's not possible to link directly to a specific section of an issue.Desired behavior
Each heading in an issue or PR body/comment should get an automatically generated anchor (e.g.
#proposed-solution), with the usual link icon appearing on hover. This would make it possible to:Reference
GitLab already supports this: headings in issues automatically get anchors, and you can link to them directly. GitHub supports this for Markdown files in repositories, so extending the same behavior to issues and pull requests would feel consistent.
Why this matters
Issues are often used for specifications, RFCs, bug reports with many details, or planning documents. As they grow longer, navigating and referencing specific sections becomes difficult. Anchor links would significantly improve readability and collaboration.
All reactions