The recommended way to create anchors in Discourse forums is using heading elements with IDs, e.g.:
<h3 id='heading--link-to-me'>Link to me</h3>
I believe this is the only mechanism which fully works. E.g., to take your “base-snap” example, while you can link to the <a name>
anchor in the actual docs site, you can’t deep-link into forum topics. So:
- https://docs.snapcraft.io/snapcraft-overview/8940#base-snap takes you to the right place, but
- https://forum.snapcraft.io/t/snapcraft-overview/8940#base-snap doesn’t
This means people can’t successfully follow deep links inside forum topics, which seems a shame.
The <h3 id='heading--*>
syntax, however, does allow deep-linking inside forum topics.
@degville do you think it’s worth updating these guidelines?