Gitlab will change its anchor generation algorithm to conform to industry standards. See details here:
the autogenerated anchor is created with fewer dash (-) characters than many users expect. For example, with a heading with ## Step - 1, most other Markdown tools and linters would expect #step---1. But GitLab generates an anchor of #step-1, with consecutive dashes compressed down to one.
In GitLab 17.0, we will align our autogenerated anchors to the industry standard by no longer stripping consecutive dashes.
Gitlab will change its anchor generation algorithm to conform to industry standards. See details here:
GitLab 17.0 is coming on May 16.