DEV Community

Cover image for MarkDown CheatSheet
Sriram Bharath
Sriram Bharath

Posted on

MarkDown CheatSheet

Markdown is a lightweight markup language used to format plain text. It’s commonly used in README files, documentation, blogs, and Notion too!


1. 🧱 Headings

Use # to create headings. More # = smaller heading.

# H1 (Big Title)
## H2 (Subtitle)
### H3 (Section)
#### H4 (Subsection)
##### H5
###### H6

Enter fullscreen mode Exit fullscreen mode

2. 📜 Paragraphs & Line Breaks

Just write normally. Use two spaces at end of a line or <br> for line breaks.

This is a paragraph.
This line breaks after two spaces.

Enter fullscreen mode Exit fullscreen mode

3. 🔡 Emphasis (Italic, Bold, Both)

*Italic* or _Italic_
**Bold** or __Bold__
***Bold Italic***

Enter fullscreen mode Exit fullscreen mode

4. 🔘 Lists

Unordered (Bullets)

- Item
* Item
+ Item

Enter fullscreen mode Exit fullscreen mode

Ordered (Numbered)

1. First
2. Second
3. Third

Enter fullscreen mode Exit fullscreen mode

Nested Lists

1. First
   - Sub item
   - Sub item

Enter fullscreen mode Exit fullscreen mode

5. 🔗 Links

[Link Text](<https://example.com>)

Enter fullscreen mode Exit fullscreen mode

Add a title on hover:

[Google](<https://google.com> "Search the web")

Enter fullscreen mode Exit fullscreen mode

6. 🖼️ Images

![Alt Text](image-url)

Enter fullscreen mode Exit fullscreen mode

Example:

![Sunset](<https://example.com/sunset.jpg>)

Enter fullscreen mode Exit fullscreen mode

7. Inline code and Code Blocks

Inline:

Use the `print()` function in Python.

Enter fullscreen mode Exit fullscreen mode

Multiline / Block:

Use triple backticks (

```) or indent with 4 spaces.


```

python
def hello():
    print("Hello, World!")



```


8. ➕ Blockquotes


markdown
> This is a quote.
>> Nested quote



Enter fullscreen mode Exit fullscreen mode

9. 📏 Horizontal Rule


markdown
---
***
___



Enter fullscreen mode Exit fullscreen mode

10. ✅ Checkboxes (GitHub / Notion Supported)


markdown
- [x] Completed Task
- [ ] Incomplete Task



Enter fullscreen mode Exit fullscreen mode

11. 📋 Tables


markdown
| Name   | Age | City     |
|--------|-----|----------|
| Alice  | 25  | London   |
| Bob    | 30  | New York |



Enter fullscreen mode Exit fullscreen mode

12. 🧠 Escape Characters (for , _, #, etc.)

Use backslash \\ to escape special Markdown characters:


markdown
\\*Not italic\\*



Enter fullscreen mode Exit fullscreen mode

13. 🔤 Strikethrough


markdown
~~This is crossed out~~



Enter fullscreen mode Exit fullscreen mode

14. 🧩 HTML in Markdown

You can embed HTML inside Markdown for more control:


markdown
<b>Bold using HTML</b>
<i>Italic</i>



Enter fullscreen mode Exit fullscreen mode

15. 🧪 Task Examples (for Practicing)

Example 1: Blog Intro


markdown
# Welcome to My Blog 🚀
Hi, I'm Sri and this is my journey into **Flutter**, **Cybersecurity**, and more!



Enter fullscreen mode Exit fullscreen mode

Example 2: To-Do


markdown
## 💼 My Weekly Tasks

- [x] Finish HTML cheat sheet
- [ ] Write CSS blog
- [ ] Build portfolio site



Enter fullscreen mode Exit fullscreen mode

🧙 Pro Tips

  • Use VSCode + Markdown Preview (Ctrl+Shift+V)
  • Use Dillinger for live editing
  • Markdown works in Notion, GitHub, Reddit, Discord, etc.

Top comments (0)