Headings
Headings organize your content into sections and establish a clear hierarchy throughout a document. They help readers quickly understand the structure of a page and navigate long-form content.
Syntax
Headings use standard Markdown syntax.
# Heading 1
## Heading 2
### Heading 3Three heading levels are supported:
- # creates a first-level heading.
- ## creates a second-level heading.
- ### creates a third-level heading.
Use heading levels sequentially to maintain a logical document structure.
Custom anchors
A heading can have a custom anchor, so links to it keep working when its text changes. Standard Markdown has no place for an anchor, so Git Sync writes such a heading as a Heading component.
:::Heading{depth="2" customAnchorSlug="install-the-cli"}
Install the CLI
:::depth is the heading level, from 1 to 3. customAnchorSlug is the anchor that links point to, as in #install-the-cli.
Exports meant for reading, such as Export to Markdown file and the Markdown version of a published page, write this heading as ## Install the CLI and leave the anchor out.
Example
The following example creates a simple document outline using all supported heading levels.
# Getting Started
Introduction and overview.
## Installation
Steps for installing the application.
### Requirements
Prerequisites and dependencies.