Learn how to format text, create headers, and style content
Headers organize your content and create navigation anchors. They appear in the table of contents and help users scan your documentation.
Use #
symbols to create headers of different levels:
Use descriptive, keyword-rich headers that clearly indicate the content that follows. This improves both user navigation and search engine optimization.
We support most Markdown formatting for emphasizing and styling text.
Apply these formatting styles to your text:
Style | Syntax | Example | Result |
---|---|---|---|
Bold | **text** | **important note** | important note |
Italic | _text_ | _emphasis_ | emphasis |
~text~ | ~deprecated feature~ |
You can combine formatting styles:
bold and italic
bold and strikethrough
italic and strikethrough
For mathematical expressions or footnotes, use HTML tags:
Type | Syntax | Example | Result |
---|---|---|---|
Superscript | <sup>text</sup> | example<sup>2</sup> | example2 |
Subscript | <sub>text</sub> | example<sub>n</sub> | examplen |
Links help users navigate between pages and access external resources. Use descriptive link text to improve accessibility and user experience.
Link to other pages in your documentation using root-relative paths:
Avoid relative links like [page](../page)
as they load slower and cannot be optimized as effectively as root-relative links.
For external resources, include the full URL:
You can check for broken links in your documentation using the CLI:
Blockquotes highlight important information, quotes, or examples within your content.
Add >
before text to create a blockquote:
This is a quote that stands out from the main content.
For longer quotes or multiple paragraphs:
This is the first paragraph of a multi-line blockquote.
This is the second paragraph, separated by an empty line with
>
.
Use blockquotes sparingly to maintain their visual impact and meaning. Consider using callouts for notes, warnings, and other information.
We support LaTeX for rendering mathematical expressions and equations.
Use single dollar signs, $
, for inline mathematical expressions:
The Pythagorean theorem states that in a right triangle.
Use double dollar signs, $$
, for standalone equations:
LaTeX support requires proper mathematical syntax. Refer to the LaTeX documentation for comprehensive syntax guidelines.
Control spacing and line breaks to improve content readability.
Separate paragraphs with blank lines:
This is the first paragraph.
This is the second paragraph, separated by a blank line.
Use HTML <br />
tags for forced line breaks within paragraphs:
This line ends here.
This line starts on a new line.
In most cases, paragraph breaks with blank lines provide better readability than manual line breaks.