Commit 1e5dadbc authored by Russell Dickenson's avatar Russell Dickenson

Merge branch '202171-update-markdown-documentation-for-table-of-contents-tag-docs' into 'master'

Update markdown documentation for table of contents tag

Closes #202171

See merge request gitlab-org/gitlab!24535
parents 448d0fbf d43cd922
...@@ -97,6 +97,7 @@ not found in standard Markdown: ...@@ -97,6 +97,7 @@ not found in standard Markdown:
- [Math equations and symbols written in LaTeX](#math) - [Math equations and symbols written in LaTeX](#math)
- [Special GitLab references](#special-gitlab-references) - [Special GitLab references](#special-gitlab-references)
- [Task Lists](#task-lists) - [Task Lists](#task-lists)
- [Table of Contents](#table-of-contents)
- [Wiki specific Markdown](#wiki-specific-markdown) - [Wiki specific Markdown](#wiki-specific-markdown)
It also has [extended Markdown features](#standard-markdown-and-extensions-in-gitlab), without It also has [extended Markdown features](#standard-markdown-and-extensions-in-gitlab), without
...@@ -456,6 +457,17 @@ unordered or ordered lists: ...@@ -456,6 +457,17 @@ unordered or ordered lists:
1. [ ] Sub-task 1 1. [ ] Sub-task 1
1. [x] Sub-task 2 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 ### Wiki-specific Markdown
The following examples show how links inside wikis behave. The following examples show how links inside wikis behave.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment