Some markdown editors (like stackedit.io) support a [TOC] “command”, which will insert/show a Table Of Contents, based on the headlines of the current document.
It would be good, if the markdown engine used by Gitlab for on-premise installations would support [TOC] as well. Both for Wikis and also for normal “in-code” .md markdown files. Especially for lengthy documents, so that people quickly can see, what’s documented there.