📝Markdown & HTML

Markdown Table of Contents

How to create a clickable navigation menu in markdown.

Explanation

TOCs help users navigate long documents by linking to specific headers.

Examples

TOC Pattern
Output
- [Installation](#installation)
- [Usage](#usage)

Code Examples

Markdown
## Table of Contents
- [Background](#background)
- [Installation](#installation)
- [Configuration](#configuration)

## Background
... content ...

Try it Now

💡 Tips

  • Anchors are usually lowercase version of headers with hyphens
  • Remove special characters from anchor links
  • Nested lists work great for sub-headers

⚠️ Common Pitfalls

  • Different platforms (GitHub, GitLab, Bitbucket) handle anchors slightly differently