diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 09:08:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 09:08:52 +0300 |
commit | fa478f189009649b115136957e2da30d760fe391 (patch) | |
tree | 32933cd0a238da9c942ad2d02c0c56d55cdf03d2 /doc/user/markdown.md | |
parent | cfbaef3f1c28cdb9b15615215b87167181cb210f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/markdown.md')
-rw-r--r-- | doc/user/markdown.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/user/markdown.md b/doc/user/markdown.md index c83fb3260c8..9da6bc041b7 100644 --- a/doc/user/markdown.md +++ b/doc/user/markdown.md @@ -97,6 +97,7 @@ not found in standard Markdown: - [Math equations and symbols written in LaTeX](#math) - [Special GitLab references](#special-gitlab-references) - [Task Lists](#task-lists) +- [Table of Contents](#table-of-contents) - [Wiki specific Markdown](#wiki-specific-markdown) It also has [extended Markdown features](#standard-markdown-and-extensions-in-gitlab), without @@ -456,6 +457,17 @@ unordered or ordered lists: 1. [ ] Sub-task 1 1. [x] Sub-task 2 +### Table of Contents + +A table of contents can be added to a Markdown file, issue or merge request +description, or a wiki page, by adding the tag `[[_TOC_]]` on its own line. +It will be replaced with an unordered list that links to the various +headers. + +```markdown +[[_TOC_]] +``` + ### Wiki-specific Markdown The following examples show how links inside wikis behave. |