derlin / bitdowntoc

Online and command-line Markdown TOC generator, with built-in support for BitBucket Server, GitHub, Gitlab, dev.to and more!
https://bitdowntoc.derlin.ch
Other
82 stars 7 forks source link

feat: support GitLab 17.0 #36

Closed derlin closed 4 months ago

derlin commented 4 months ago

Gitlab 17 changed its anchor generation algorithm to fit the industry standards. It will now behave like GitHub:

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 17.0 is coming on May 16. This PR adds a new GitLab17 profile that matches this change.

Closes #32