Skip to content
ReadmeOrbit

Markdown cheatsheet for READMEs

GitHub renders READMEs with GitHub Flavored Markdown (GFM). Everything below works on GitHub and in the ReadmeOrbit preview.

Headings

md
# Project title
## Section
### Subsection

Emphasis

md
**bold**, _italic_, ~~strikethrough~~, `inline code`

bold, italic, strikethrough, inline code

Lists

md
- Unordered item
  - Nested item
1. Ordered item
2. Another item
- [x] Completed task
- [ ] Open task
  • Completed task
  • Open task
md
[Link text](https://example.com)
[Jump to a section](#installation)
![Alt text](https://example.com/screenshot.png)

To resize or center an image, use HTML:

html
<p align="center">
  <img src="docs/logo.png" alt="Project logo" width="160">
</p>

Code blocks

Add a language after the opening fence to enable highlighting:

md
```python
def greet(name: str) -> str:
    return f"Hello, {name}!"
```
python
def greet(name: str) -> str:
    return f"Hello, {name}!"

Tables

md
| Left | Center | Right |
| :--- | :----: | ----: |
| a    |   b    |     c |
LeftCenterRight
abc

Alerts

md
> [!NOTE]
> Useful information users should know.

> [!WARNING]
> Critical content demanding immediate attention.

Note

Useful information users should know.

Warning

Critical content demanding immediate attention.

The five alert types are NOTE, TIP, IMPORTANT, WARNING and CAUTION.

Collapsible sections

html
<details>
<summary>Show advanced options</summary>

Content here is hidden until expanded. Leave a blank line after the summary.

</details>
Show advanced options

Content here is hidden until expanded. Leave a blank line after the summary.

Footnotes

md
ReadmeOrbit stores data locally.[^1]

[^1]: Using IndexedDB in your browser.

Horizontal rule

md
---

Keyboard keys

html
Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy.

Press Ctrl + C to copy.

Ready to write yours?

Open the editor — no sign-up, saved in your browser.

Create README