Writing

Markdown Cheatsheet

Markdown is a lightweight syntax for formatting plain text. This cheatsheet covers headings, lists, links, code, and more.

Markdown is a lightweight markup language for formatting plain text that converts to HTML. It's used for READMEs, docs, notes, and blogs. This cheatsheet covers the syntax.

Headings

Six levels using #.

# H1
## H2
### H3
#### H4

Emphasis

Bold, italic, and strikethrough.

*italic* or _italic_
**bold** or __bold__
***bold italic***
~~strikethrough~~

Lists

Ordered and unordered.

- Item
- Item
  - Nested item

1. First
2. Second
   1. Nested

Links & Images

Reference URLs and media.

[Link text](https://example.com)
[Link with title](https://x.com "Title")
![Alt text](image.jpg)

Code

Inline and blocks.

Use `inline code` in a sentence.

    fenced code block
    with a language tag

Blockquotes

Quote text with >.

> This is a quote.
> It can span lines.
>
> > And be nested.

Tables

Columns separated by pipes.

| Name | Age |
| ---- | --- |
| Ada  | 36  |
| Alan | 41  |

Horizontal Rules

Divide sections.

---
***
___

Task Lists

Checkboxes (GitHub-flavored).

- [x] Completed task
- [ ] Pending task

Markdown keeps writing simple and portable. Learn these basics, and check your platform's docs for extensions like footnotes, callouts, and diagrams.

For full documentation, see https://www.markdownguide.org/

Promote your content

Reach over 400,000 developers and grow your brand.

Join our developer community

Hang out with over 4,500 developers and share your knowledge.