I admit this feature request is probably somewhat limited in useful scope, but I'm throwing it out there anyway. Inspired by this answer, and because I want to use it on this one, I'm requesting that name
be supported on a
tags in posts.
On very long answers, such as the closing/migration guidance answer, this would allow direct linking to the specific closure reason. This would then allow us, when someone asks why a question was closed, to link directly to the appropriate reason and description thereof.
I recognize the limited scope of this, however, I have seen other long answers that could stand to have that kind of "deep" linking ability as well.
(The original incarnation of this post had either name
or id
, but preferenced name
. Per Koper's answer, which I agree with, I took out the idea of supporting id
, because Koper's right -- too dangerous.)
name
defined? Would this be prone to generating text/code inconveniently messy?#
) and it's alpha-num +-
only, then make it an Anchor tag. This fits right in with the current URL syntax, and even allows you to define them on non-heading elements as well.### Some Heading
then it's the renderer's job to come up with an ID, not the user's. I think it's more about changing how the existing syntax gets rendered, than changing the syntax itself - like the currently top-voted answer suggests. The preview box wouldn't need to implement it (navigating previewed links would navigate away from the post being written anyway)