Markdown Cheatsheet
Markdown CheatsheetPosted: by Tuxilio
·
Edit ·
Changelog
Stats: 438 words / ~3 minutes
Headers
H1
# H1
H2
## H2
H3
### H3
H4
#### H4
H5
##### H5
H6
###### H6
Emphasis
Italic
*Italic* or _Italic_
Bold
**Bold** or __Bold__
Bold and Italic
***Bold and Italic*** or ___Bold and Italic___
Strikethrough
~~Strikethrough~~
Lists
Unordered List
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
Ordered List
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
1. Item 1
2. Item 2
1. Subitem 2.1
2. Subitem 2.2
3. Item 3
Task List
- Task 1
- Task 2 (completed)
- Task 3
- [ ] Task 1
- [x] Task 2 (completed)
- [ ] Task 3
Links
Inline Links
[Link Text](http://example.com)
Reference Links
[Link Text][1]
[1]: http://example.com
Automatic Links
<http://example.com>
Images
Inline Images

Reference Images
![Alt Text][1]
[1]: /favicon.ico
Code
Inline Code
inline code
`inline code`
Code Block
code block
code block
Indented Code Block
Indented code block (by 4 spaces or 1 tab)
Indented code block (by 4 spaces or 1 tab)
Fenced Code Block with Syntax Highlighting
function example() {
console.log("Hello, world!");
}
```javascript
function example() {
console.log("Hello, world!");
}
---
## Blockquotes
> This is a blockquote.
>
> This is another paragraph in the blockquote.
```markdown
> This is a blockquote.
>
> This is another paragraph in the blockquote.
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 |
Alignment in Tables
Left Aligned | Center Aligned | Right Aligned |
---|---|---|
Cell 1 | Cell 2 | Cell 3 |
Cell 4 | Cell 5 | Cell 6 |
| Left Aligned | Center Aligned | Right Aligned |
|:-------------|:--------------:|--------------:|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Footnotes
Here is a footnote reference1.
Here is a footnote reference[^1].
[^1]: This is the footnote.
Definitions
- Term 1
- Definition 1
- Term 2
- Definition 2
Term 1
: Definition 1
Term 2
: Definition 2
Emojis
😀 ❤️ 👍
:smile: :heart: :+1:
Details and Summary
Click to expand!
This is hidden content that can be toggled by clicking the summary.
<details>
<summary>Click to expand!</summary>
This is hidden content that can be toggled by clicking the summary.
</details>
Escaping Characters
*literal asterisks*
\*literal asterisks\*
This cheatsheet covers the basics of Markdown syntax. You can include this in your Hugo blog to help others (and yourself) quickly reference Markdown commands.
This is the footnote. ↩︎
You can reply to this post via email or contact me if you wish to comment or propose a correction.