API Documentation: "On this page" nav links don't always match header anchor links
In the API documentation header links that contain apostrophes experience a mismatch between the anchor links and their associated nav links.
Example: https://docs.gitlab.com/ee/api/groups.html
The "List a group's projects" header has an anchor link of https://docs.gitlab.com/ee/api/groups.html#list-a-group-39-s-projects while the nav link is https://docs.gitlab.com/ee/api/groups.html#list-a-group-s-projects. It appears that the anchor link is parsing the apostrophe as -39 while the nav link is stripping it out entirely.
A quick search through the repo lead me to https://gitlab.com/thetwoj/gitlab-ee/blob/master/lib/banzai/filter/table_of_contents_filter.rb but the root cause of the issues was not immediately apparent to me.
Edited by 🤖 GitLab Bot 🤖