Need AI Training/Help?CloudYeti.io/meet
MarkdownMe
Markdown editor guide

How to Write a README in Markdown

Structure a clear README.md with a title, badges, install and usage sections, and a live preview before you commit.

Direct answer

A strong README opens with an H1 project title and one-line description, then covers Installation, Usage, Configuration, and License as H2 sections. Write it in a live editor so you can confirm code blocks, links, and tables render before committing README.md to your repo.

Open the Markdown Editor

When to use this

  • You are starting a new repository and need a README.md from scratch.
  • Your current README renders badly on GitHub and you want to fix the structure.
  • You want to preview headings, code blocks, and tables before pushing.

Steps

  1. Start with a single H1 title and a one-sentence description underneath.
  2. Add an H2 Installation section with a fenced code block for the install command.
  3. Add an H2 Usage section with a minimal, copy-ready example.
  4. List configuration options in a Markdown table if there are more than two.
  5. Close with License and contribution links.
  6. Preview the rendered README, then copy or download it as README.md.

Example

Markdown you type
# ProjectName

One-line description of what this project does.

## Installation

```bash
npm install projectname
```

## Usage

```js
import { run } from "projectname";
run();
```

## Configuration

| Option | Default | Description |
| --- | --- | --- |
| `debug` | `false` | Log verbose output |
| `retries` | `3` | Retry count on failure |

## License

MIT
How it renders
ProjectName  (large H1 title)

One-line description of what this project does.

Installation  (H2)
  npm install projectname   (copy button on GitHub)

Usage  (H2)
  import { run } from "projectname";
  run();

Configuration  (H2)
  Option    | Default | Description
  debug     | false   | Log verbose output
  retries   | 3       | Retry count on failure

License  (H2)
  MIT

Common mistakes

  • Use only one H1 in a README; put every other section under H2 so the GitHub outline stays readable.
  • Always label fenced code blocks with a language (bash, js, python) so GitHub highlights them.
  • Avoid pasting raw HTML tables when a Markdown pipe table renders more reliably across viewers.

FAQ

What sections should every README include?
At minimum: a title and description, Installation, Usage, and License. Add Configuration, Contributing, and Badges when the project needs them.
How do I preview a README before pushing to GitHub?
Write it in a live Markdown editor with a preview pane. You will see the exact heading sizes, code highlighting, and table alignment before you commit README.md.
Should a README use one H1 or several?
Use exactly one H1 for the project name. GitHub builds the sidebar outline from your headings, so multiple H1s make the outline confusing.

Related Markdown guides

Related Markdown editor guides