Just for the record I do see that ToC in .md is supported with recently version maybe after https://gitlab.com/gitlab-org/gitlab/-/issues/21901 was resolved. Answer from 130s on forum.gitlab.com
GitLab
docs.gitlab.com › gitlab docs › use gitlab › plan and track work › markdown
GitLab Flavored Markdown (GLFM) | GitLab Docs
Formatting, inline HTML, GitLab-specific references, diagrams, and flowcharts.
GitLab Docs
Learn how to use and administer GitLab, the most scalable Git-based fully integrated platform for software development.
Use GitLab
Get to know the GitLab end-to-end workflow. Configure permissions, organize your work, create and secure your application, and analyze its performance. Report on team productivity throughout the process
Release notes
GitLab release announcements and feature highlights.
Use CI/CD to build your application
Runners, jobs, pipelines, variables
GitLab
handbook.gitlab.com › docs › markdown-guide
Handbook Markdown Guide | The GitLab Handbook
It implements the CommonMark markdown standard, is extensible, and is very fast at transforming Markdown to HTML. As such, we encourage use of Markdown as much as possible, though we allow HTML inline (MD033). There are different possible syntaxes for most of the markups described below, but this guide is to be considered the standard for The GitLab Handbook .
Table Of Contents (TOC) in Markdown (Wiki and general)
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. More on forum.gitlab.com
How to use GitLab Flavored Markdown's ::include - Community - GitLab Forum
Here our gitlab self-managed version is: GitLab Community Edition [v17.5.5] and we just can’t use GitLab Flavored Markdown’s ::includ module in our markdown file by KB: GitLab Flavored Markdown (GLFM) | GitLab Docs The issue is even we maintained the markdown file with include module part ... More on forum.gitlab.com
Create external link in GitLab Flavored Markdown - Stack Overflow
Is there anyway to link to an external file (non http url) in GitLab Flavored Markdown? e.g. HTML equivalent would be link text e.g. MediaWiki equival... More on stackoverflow.com
Add support for Gitlab markdown flavour
Discussed in #11903 Originally posted by NamUKF March 30, 2026 Hi, we do really like your work on the support and integration of Gitlab into outline. There are some improvements we found: Support gitlab markdown flavour make issue previe... More on github.com
GitLab
forum.gitlab.com › how to use gitlab
Table Of Contents (TOC) in Markdown (Wiki and general) - How to Use GitLab - GitLab Forum
August 16, 2017 - 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.
GitLab
about.gitlab.com › blog › news › gitlab's realtime preview markdown is an editor for everyone
GitLab's realtime Preview Markdown is an editor for everyone
September 21, 2021 - When you are editing any Markdown file, even a newly created one, you can right-click the editor and select Preview Markdown or use Command/Control + Shift + P to toggle a split-screen live preview of your Markdown content. From there, all you need to do is start writing or editing content and you’ll see your changes in real time! At GitLab, everyone can contribute and we welcome feedback in any form.
Embl-community
grp-bio-it-workshops.embl-community.io › building-websites-with-gitlab › 02-markdown › index.html
Authoring With Markdown – Building Websites with GitLab
August 2, 2023 - Use Markdown syntax to add a link in the collaborative notes document you are using to follow along with this lesson. The link text should be your GitLab username, and the target your repository.
GitLab
design.gitlab.com › product-foundations › type-markdown
Markdown | Pajamas Design System
July 25, 2025 - The fixed type scale is used with GitLab Flavored Markdown (GLFM) and for content such as tables, task lists, and code blocks.
GitLab
gitlab.com › gitlab.org › #15810
Add support for GitLab Flavored Markdown (GLFM) in VS Code / WEB IDE (#15810) · Epics · Epics · GitLab.org · GitLab
November 4, 2024 - The [GitHub Markdown Preview](https://marketplace.visualstudio.com/items?itemName=bierner.github-markdown-preview) extension pack covers many of the additional GitLab features. But they are designed for [GitHub flavored Markdown](https://github.github.com/gfm/) and do not cover all the GitLab styles (e.g.
Gitlab
gitlab-org.gitlab.io › ruby › gems › gitlab-glfm-markdown
GitLab Flavored Markdown dingus
CommonMark/GFM/GLFM dingus powered by Comrak 0.55.0 · clear · permalink · options · Extension options · alerts · autolink · cjk_friendly_emphasis · description_lists · footnotes
GitLab
forum.gitlab.com › community
How to use GitLab Flavored Markdown's ::include - Community - GitLab Forum
November 26, 2025 - Here our gitlab self-managed version is: GitLab Community Edition [v17.5.5] and we just can’t use GitLab Flavored Markdown’s ::includ module in our markdown file by KB: GitLab Flavored Markdown (GLFM) | GitLab Docs The …
Top answer 1 of 2
2
The file:// protocol is not included in the sanitation filter whitelist referenced by gitlab in the documentation.
You could manually edit embedded/service/gitlab-rails/lib/gitlab/markdown.rb in your gitlab installation, add the protocol to the whitelist yourself and restart gitlab after that to apply the changes (just insert the line with the leading +):
whitelist = HTML::Pipeline::SanitizationFilter::WHITELIST
whitelist[:attributes][:all].push('class', 'id')
whitelist[:elements].push('span')
+ whitelist[:protocols]['a']['href'] = ['file'].concat(whitelist[:protocols]['a']['href'])
# Remove the rel attribute that the sanitize gem adds, and remove the
# href attribute if it contains inline javascript
but this is probably not the best idea, because it will cause occasional headaches when upgrading the gitlab installation.
And the desired file:// links will still not open as expected without additional configuration steps or addon installations on the client side (see here).
2 of 2
0
The normal markdown hyperlink syntax should work: file description
GitLab
gitlab.com › gitlab.org › repository
doc/user/markdown.md · 9f7a5f939ba61dccb0a1ea098632712b3dbda908 · GitLab.org / GitLab · GitLab
GitLab is the open-source DevSecOps platform that provides a complete software development lifecycle toolchain including source control, CI/CD, security scanning, and project management in a single application.