Tables
Basic Usage
Use | --- | --- | below the header; the number of columns must match.
- Source
- Result
| Name | Description || --- | --- || Heading | Page level || List | Item listing || Name | Description |
|---|---|
| Heading | Page level |
| List | Item listing |
Column Alignment
Colons in the separator row control alignment: :--- left, :--: center, ---: right.
- Source
- Result
| Left | Center | Right || :--- | :--: | ---: || Apple | 3 | 9.0 || Banana | 12 | 2.5 || Left | Center | Right |
|---|---|---|
| Apple | 3 | 9.0 |
| Banana | 12 | 2.5 |
Inline Formatting in Cells
Cells can mix bold, inline code, links, and other Markdown syntax.
- Source
- Result
| Type | Example || --- | --- || Bold | **Important** || Code | `npm install` || Link | [Docusaurus](https://docusaurus.io) || Type | Example |
|---|---|
| Bold | Important |
| Code | npm install |
| Link | Docusaurus |
Line Breaks in Cells
Line breaks inside a cell need HTML <br/> (a Markdown newline is not parsed as a break).
- Source
- Result
| Feature | Description || --- | --- || Heading<br/>Multi-level | H1–H6<br/>Auto numbering || List | Unordered / ordered<br/>Task list || Feature | Description |
|---|---|
| Heading Multi-level | H1–H6 Auto numbering |
| List | Unordered / ordered Task list |