Closed
Description
A heading like # Usage
generates a anchor user-content-usage-example
with same href which is rather ugly in shared links:
<h2 id="user-content-usage">Usage<a href="#user-content-usage"></a></h2>
GitHub and GitLab both do:
<h2><a id="user-content-usage" href="#usage"></a>Usage</h2>
I think we should follow and also omit the user-content
prefix in href
. This could be a breaking change, but I think we could maybe support both cases to not break existing links.