JcHub
Back to the blog
Development2026-10-015 min

Markdown in 5 Minutes: The Survival Guide for Junior Devs

New to GitHub and confused by README syntax? Here's everything you need to know about Markdown in 5 minutes, complete with examples.

By Jessy Ngnambongo
... views|Share

The first time I used GitHub, I looked at a README. I saw #, **, [](). I understood nothing. I closed the tab.

3 months later, I realized that Markdown is just formatted text with a super simple syntax. Once you get the hang of it, you can't live without it.

Here's everything you need to know.

What Is Markdown?

Markdown is a lightweight markup language created in 2004. The core idea: you write plain text, add a few special characters, and it turns into formatted HTML.

Example:

# My title

This is a **paragraph** with *italic text*.

- Item 1
- Item 2
- Item 3

[A link](https://jchub.dev)

Output:

<h1>My title</h1>
<p>This is a <strong>paragraph</strong> with <em>italic text</em>.</p>
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>
<p><a href="https://jchub.dev">A link</a></p>

The goal: text that is readable even without being rendered, and converts into clean HTML.

Essential Syntax (To Know by Heart)

Headings

# H1 - Main title
## H2 - Subtitle
### H3 - Sub-subtitle
#### H4 - Sub-sub-subtitle

Rule: only one # per document (the main title). Subsequent headings use ##, ###, etc.

Bold and Italic

**Bold text**
*Italic text*
***Bold and italic text***
~~Strikethrough text~~

Lists

- Item 1
- Item 2
  - Sub-item 2.1
  - Sub-item 2.2
- Item 3

1. First
2. Second
3. Third

⚠️ Indentation matters: 2 spaces for sub-items.

Links

[Link text](https://url.com)
[Link with title](https://url.com "Hover title")

Images

![Alt text](url-image.png)
![Logo](https://jchub.dev/logo.png "My logo")

⚠️ The difference from a link: the leading !.

Code

Inline (inside a sentence):

Use `npm install` to install dependencies.

Block (multiline):

```javascript
function hello(name) {
  return `Hello ${name}!`;
}
```

Adding javascript right after ``` is for syntax highlighting. You can use python, bash, json, etc.

Blockquotes

> Life is a long quiet river.
> - African proverb

Tables

| Name | Age | City        |
|------|-----|-------------|
| Jean | 25  | Brazzaville |
| Marie| 30  | Paris       |
| Paul | 28  | Kinshasa    |

Horizontal Rules

---

3 dashes = a horizontal rule.

Checkboxes (GitHub only)

- [x] Task done
- [ ] Task to do
- [ ] Other task

Super useful for issues and PRs.

GitHub-Flavored Markdown

GitHub adds extensions to standard Markdown. Here's what's specific to GitHub:

Mentions and Issues

@jessy-username           → mentions a user
#1234                     → links to an issue/PR
gh-user:jessy             → GitHub profile card

Emojis

:rocket: :fire: :heart:

→ 🚀 🔥 ❤️

Full list: github.com/ikatyang/emoji-cheat-sheet

Alerts (New in 2024)

> [!NOTE]
> Useful information.

> [!WARNING]
> Watch out, important stuff.

> [!TIP]
> Practical tip.

→ Renders stylish alert callouts on GitHub.

Common Pitfalls

1. Numbered lists repeating numbers

If you write:

1. Item
1. Item
1. Item

Markdown will still increment the numbers automatically. That's normal.

2. Empty lines

An empty line = a new paragraph. If you forget it, everything gets mashed together.

3. Escaping characters

\*This text will not be in italics\*

To display a *, _, `, etc., put a \ in front of it.

4. Inline HTML

Markdown supports inline HTML:

<details>
<summary>Click to expand</summary>

Hidden content.
</details>

My README Workflow

# Project Name

> Short description (1 sentence)

![Demo](demo.gif)

## 🎯 Features
- Feature 1
- Feature 2

## 📦 Installation
```bash
npm install mon-package

🚀 Usage

const result = monPackage.doStuff();

🤝 Contributing

PRs welcome!

📄 License

MIT


This is the structure I use for **all** my projects. Readable, complete, professional.

## How to Test Your Markdown in Real Time

My free tool: [Markdown Preview](https://jchub.dev/fr/outils/apercu-markdown). You type on the left, you see the preview on the right. Super handy when starting out and wanting to verify your syntax.

**Bonus**: it also works for writing blog posts, docs, or stylish emails.

## TL;DR

- **Markdown** = formatted text using simple symbols
- **Must-know**: `#` headings, `**bold**`, `*italic*`, `[link](url)`, `![image](url)`, lists, code blocks
- **GitHub** adds: mentions, alerts, emojis, tasks
- **Free tool**: [jchub.dev/fr/outils/apercu-markdown](https://jchub.dev/fr/outils/apercu-markdown)
- **1 hour of learning** for the basics, **1 day** to get comfortable

---

**Writing a README and need help?** My [Markdown Preview](https://jchub.dev/fr/outils/apercu-markdown) shows you the live preview in real time.

There are 14 free dev tools on JcHub → [jchub.dev/fr/outils](https://jchub.dev/fr/outils)
#Development#learn markdown#markdown syntax#markdown guide

Comments

 

    Leave a comment

    Your name and comment will be visible to everyone. Please be courteous: off-topic or abusive messages are removed.

    Read next