Headings, formatting, links, images, tables & more
Reference# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Alternative (for H1 and H2):
Heading 1
=========
Heading 2
---------*italic* or _italic_
**bold** or __bold__
***bold italic***
~~strikethrough~~
`inline code`
> Blockquote
>> Nested blockquote
--- horizontal rule
*** horizontal rule
Escaping special characters
\*not italic\*
\# not a headingUnordered
- Item 1
- Item 2
- Nested item
- Nested item
Ordered
1. First
2. Second
3. Third
Task list (GitHub)
- [x] Completed task
- [ ] Incomplete task
- [ ] Another task
Definition list (some parsers)
Term
: Definition hereLinks
[Link text](https://example.com)
[Link with title](https://example.com "Title")
[Reference link][ref-id]
[ref-id]: https://example.com
Auto-link
<https://example.com>
Images


[](https://url.com)
Footnotes (extended)
Text with footnote[^1]
[^1]: Footnote content here.Inline code
Use `backticks` for inline code.
Code block (fenced)
```python
def hello():
print("Hello!")
```
```javascript
const x = 42;
```
Indented code block (4 spaces)
function hello() {
return "hi";
}| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Alignment
| Left | Center | Right |
|:---------|:--------:|---------:|
| left | center | right |Emoji (GitHub)
:smile: :rocket: :tada: :+1:
HTML in Markdown
<details>
<summary>Click to expand</summary>
Hidden content here
</details>
Line break
End line with two spaces (soft break)
Or use <br> tag
Math (GitHub, some parsers)
Inline: $E = mc^2$
Block:
$$
\sum_{i=1}^{n} x_i
$$Task lists
- [x] Done
- [ ] Todo
Mentions & References
@username mention user
#123 issue/PR reference
SHA commit reference
Alerts (GitHub)
> [!NOTE]
> Information note
> [!WARNING]
> Warning message
> [!TIP]
> Helpful tip
Mermaid diagrams
```mermaid
graph LR
A --> B --> C
```