Markdown Syntax
Markdown Cheatsheet
Headers
# H1
## H2
### H3
#### H4
##### H5
###### H6
H1
H2
H3
H4
H5
H6
Emphasis
*italic* or _italic_
**bold** or __bold__
***bold italic*** or ___bold italic___
~~strikethrough~~
italic or italic
bold or bold
bold italic or bold italic
strikethrough
Lists
Unordered
- Item 1
- Subitem 1.1
- Subitem 1.2
* Item 2
+ Item 3
- Item 1
- Subitem 1.1
- Subitem 1.2
- Item 2
- Item 3
Ordered
1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
Links
[Link text](https://www.example.com)
[Link with title](https://www.example.com "Title")
<https://www.example.com>
Link with title https://www.example.com
Images
![Alt text](https://via.placeholder.com/150)
![Alt text](https://via.placeholder.com/150 "Optional title")
Blockquotes
> This is a blockquote
>> Nested blockquote
This is a blockquote
Nested blockquote
Code
Inline `code`
Code block (indented by 4 spaces)
```python
def hello_world():
print("Hello, World!")
Inline code
Code block (indented by 4 spaces)
def hello_world():
print("Hello, World!")
Horizontal Rule
---
***
___
Tables
| Header 1 | Header 2 |
|----------|----------|
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
Task Lists
- [x] Completed task
- [ ] Uncompleted task
- Completed task
- Uncompleted task
Footnotes
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
Here’s a sentence with a footnote. 1
Escaping Characters
\*This text is surrounded by literal asterisks\*
*This text is surrounded by literal asterisks*
This is the footnote. ↩︎