Headers and Text

Learn how to structure and style your content with headers, formatting, and links.

Headers

Headers define the hierarchy of your content and automatically generate navigation anchors. They also appear in the table of contents, helping readers quickly scan through documentation.

Creating headers

Add # symbols before text to create headers at various levels:

## Main section header
### Subsection header
#### Nested subsection header

Text Formatting

Markdown text styling is supported for emphasis, highlighting, and readability.

Basic formatting

Use these common syntax options:

  • Bold: **bold text**bold text
  • Italic: *italic text*italic text
  • Strikethrough: ~~strikethrough~~strikethrough

Combining formats

You can mix multiple styles at once for clarity:

**_bold and italic_**
**~~bold and strikethrough~~**
*~~italic and strikethrough~~**

Superscript and subscript

For formulas, notes, or variables, use HTML tags:

  • Superscript X<sup>2</sup> → X2
  • Subscript H<sub>2</sub>O → H2O

Links connect users to internal pages or external resources. Always use descriptive link text for better accessibility.

Reference other docs with root-relative paths:

[Getting Started](/)
[Commands](/commands)

Point to external pages by including full URLs:

[Markdown Guide](https://www.markdownguide.org/)

Markdown Guide

Blockquotes

Blockquotes are used to visually highlight key information, quotations, or examples.

Single line blockquotes

Prefix text with > for a single-line blockquote:

> Highlighted message or quote

Highlighted message or quote

Multi-line blockquotes

For larger quotes spanning more than one paragraph:

> This is a blockquote that spans multiple lines.
> It can include several paragraphs of text.
> Each new line starts with a `>` symbol.

This is a blockquote that spans multiple lines. It can include several paragraphs of text. Each new line starts with a > symbol.

Line Breaks and Spacing

Control spacing to improve readability and layout.

Paragraph breaks

Separate paragraphs with blank lines:

First paragraph.

Second paragraph.

First paragraph.

Second paragraph.

Manual line breaks

For shorter breaks inside the same paragraph, use <br />:

This is one line.<br />
This is the next line.

This is one line.
This is the next line.

Best Practices

Organizing content

  • Use headers to establish hierarchy
  • Maintain logical order (avoid skipping levels, e.g., H2 → H4)
  • Always write meaningful, descriptive headers

Formatting text

  • Use bold for key emphasis only
  • Use italics for emphasis or technical terms
  • Limit formatting combinations to maintain readability
  • Avoid vague text like “click here”
  • Prefer root-relative paths for internal links
  • Regularly validate links to ensure they are not broken