In GitHub, there is a feature where all headers (<h#>
) have a link attached to them that, when visited, will scroll your screen down to that header on the page.
For example:
I think this would be a useful feature because, especially on long answers, it helps with directing other users to the section you are trying to mention.
This could possibly be extended to lines, where there is a link for each line (also similar to GitHub's file viewer), although this is unlikely.
You might say that, "There may be multiple posts with the same headers". A fix for this could be that each header link is given extra information that makes it unique. For example, the post author's ID could be appended to the link.