Home/Docs/Markdown Cheat Sheet

Markdown Cheat Sheet

Last updated: 10 min read

This documentation explains Markdown syntax with practical examples, formatting rules, platform compatibility, and best practices. Use it as a complete reference while writing Markdown.

Each section includes the syntax, a working example, and notes for everyday use. Copy any example directly into your editor, README, or documentation file.

New to Markdown? Read the [beginner introduction](/blog/markdown-cheat-sheet) first, then return here when you need the full syntax reference.

Basic Markdown Syntax

The table below covers the Markdown formatting commands you'll use most often. Don't worry if you don't remember everything β€” the next sections explain each syntax with examples and useful tips.

ElementMarkdown Syntax
Heading# Heading
Bold**Bold Text**
Italic*Italic Text*
Bold + Italic***Bold Italic***
Strikethrough~~Text~~
Link[Title](https://example.com)
Image![Alt Text](image.png)
Inline Code`code`
Code Block```language
Unordered List- Item
Ordered List1. Item
Task List- [ ] Task
Blockquote> Quote
Horizontal Rule---
Table| Name | Age |

What is Markdown?

Markdown is a simple way to format text using plain characters instead of toolbar buttons. You don't need special software to write itβ€”just type a few symbols, and Markdown converts them into headings, lists, links, tables, or other formatted content.

Because the syntax is easy to learn, Markdown has become the standard format for documentation, README files, technical notes, project wikis, and knowledge bases.

Today, Markdown is supported by many popular platforms, including GitHub, GitLab, Obsidian, Notion, Discord, Stack Overflow, and countless documentation tools.

The biggest advantage is that your content stays clean and readable even before it is rendered.

How to Use This Reference

Keep this page open while you write. Each section is structured for lookup, not storytelling:

  • Syntax β€” the exact characters to type
  • Example β€” a copy-ready block you can paste
  • Tips β€” platform notes and common fixes

Use the navigation to jump to headings, lists, tables, code blocks, or platform-specific sections (GitHub, Obsidian, Discord).

For a shorter walkthrough of the basics, see the Markdown beginner guide on the blog.

Before You Continue

Markdown looks simple at first, but small formatting mistakes can stop your content from rendering correctly.

That's why each section below includes:

  • What the syntax does
  • How to write it
  • A working example
  • Tips for everyday use
  • Common mistakes to avoid

You can read the guide from start to finish or jump directly to the section you need using the navigation above.

Markdown Headings

Headings help organize your document into clear sections. Markdown supports six heading levels, from H1 to H6.

Syntax

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Example

# Markdown Cheat Sheet
## Basic Formatting
### Lists

Result

Markdown Cheat Sheet

Basic Formatting

Lists

Quick Tip

Use only one H1 on a page. Then organize the rest of your content with H2 and H3 headings.

Common Mistake

Wrong:

##Heading

Correct:

## Heading

Always leave one space after the # symbol.

Paragraphs & Line Breaks

Paragraphs

Markdown automatically creates paragraphs when you leave a blank line between blocks of text.

Syntax

This is the first paragraph.

This is the second paragraph.

Example

Markdown keeps writing simple.

Leave one blank line to begin a new paragraph.

Quick Tip

Keep paragraphs short. Two or three sentences are usually easier to read than one long block of text.


Line Breaks

Sometimes you want a new line without starting a new paragraph.

Syntax

Add two spaces at the end of a line or use an HTML <br> tag if your Markdown platform supports it.

First line  
Second line

or

First line<br>
Second line

Quick Tip

Use normal paragraphs whenever possible. Line breaks are best for addresses, poems, or similar content.

Bold, Italic & Strikethrough

Bold Text

Use bold formatting when you want readers to notice important words.

Syntax

**Bold Text**

Example

Always **save your work** before closing the editor.

Result

Always save your work before closing the editor.

Quick Tip

Double asterisks (**) are the most widely supported way to create bold text.


Italic Text

Italic text is useful for emphasis, book titles, or subtle highlights.

Syntax

*Italic Text*

Example

Please read the *documentation* before you begin.

Result

Please read the documentation before you begin.


Bold and Italic Together

Need stronger emphasis? Combine bold and italic formatting.

Syntax

***Important***

Example

***Backup your files*** before making major changes.

Result

Backup your files before making major changes.


Strikethrough

Strikethrough shows text that has been removed, replaced, or completed.

Syntax

~~Old Text~~

Example

~~Version 1~~

Version 2

Result

Version 1

Version 2

Common Uses

  • Changelogs
  • Task tracking
  • Documentation updates

Lists

Unordered Lists

Use unordered lists whenever the order of items doesn't matter.

Syntax

- Item One
- Item Two
- Item Three

You can also use:

* Item
+ Item

Example

- HTML
- CSS
- Markdown
- JavaScript

Result

  • HTML
  • CSS
  • Markdown
  • JavaScript

Nested Lists

- Programming
  - Python
  - JavaScript

Quick Tip

Stick with one bullet style throughout a document for consistency.


Ordered Lists

Use ordered lists when the sequence is important.

Syntax

1. First
2. Second
3. Third

Example

1. Install the software.
2. Open the editor.
3. Start writing.

Result

  1. Install the software.
  2. Open the editor.
  3. Start writing.

Quick Tip

Most Markdown editors automatically continue numbering as you add new items.


Nested Ordered Lists

You can create sub-steps by indenting the next level.

Example

1. Create a project.
   1. Add a README.
   2. Add documentation.
2. Commit the changes.

This is useful for tutorials, setup guides, and documentation with multiple steps.


Mixing Ordered and Unordered Lists

Markdown also allows different list types together.

Example

1. Frontend
   - HTML
   - CSS
   - JavaScript

2. Backend
   - Node.js
   - Python

This works well when each numbered step contains several related items.


Tips for Writing Better Markdown

Small formatting habits make your documents easier to read.

  • Keep headings descriptive.
  • Leave blank lines between sections.
  • Use short paragraphs.
  • Choose one list style and stay consistent.
  • Don't overuse bold formatting.
  • Preview your document before publishing.

These simple habits make Markdown documents look cleaner on GitHub, documentation sites, note-taking apps, and Markdown editors.

Images

Images use almost the same syntax as links.

The only difference is the exclamation mark (!) at the beginning.

Syntax

![Alt Text](image.png)

Example

![Project Logo](logo.png)

Quick Tip

Always write meaningful alt text. It improves accessibility and helps explain the image if it cannot be loaded.


Image with a Link

You can make an image clickable by wrapping it inside a link.

Example

[![Logo](logo.png)](https://example.com)

Code & Code Blocks

Inline Code

Inline code highlights a command, filename, variable, or short code snippet.

Syntax

`code`

Example

Use the `npm install` command.

Result

Use the npm install command.

Common Uses

  • Commands
  • File names
  • Variables
  • Package names
  • API endpoints

Code Blocks

Use code blocks for longer examples.

Three backticks start and end a code block.

Syntax


Your code here


Example


console.log("Hello, World!");


Syntax Highlighting

Many Markdown editors support language names.

```javascript
console.log("Hello");

Supported languages often include:

- JavaScript
- Python
- HTML
- CSS
- JSON
- Bash
- PHP
- Java
- C++
- TypeScript

### Quick Tip

Always specify the language when possible. It makes code much easier to read.

Tables

Markdown tables organize information into rows and columns.

Basic Syntax

| Name | Role | Experience |
|------|------|-----------|
| Alex | Developer | 5 Years |
| Emma | Designer | 3 Years |

Result

Name Role Experience
Alex Developer 5 Years
Emma Designer 3 Years

Table Alignment

You can align columns using colons.

Left

| Name |
|:-----|

Center

| Name |
|:----:|

Right

| Name |
|-----:|

Quick Tip

For large tables, use the Markdown Table Generator instead of creating tables manually.

Task Lists

Task lists are popular in GitHub projects and documentation.

Syntax

- [ ] Write documentation
- [x] Publish README

Result

  • Write documentation
  • Publish README

Common Uses

  • Project planning
  • Issue tracking
  • Daily tasks
  • Documentation checklists

Blockquotes

Blockquotes highlight notes, quotations, or important information.

Syntax

> This is a blockquote.

Example

> Markdown focuses on readability.

Result

Markdown focuses on readability.

Nested Blockquote

> Main Quote
>> Nested Quote

Horizontal Rules

Horizontal rules separate sections of a document.

Syntax

Any of these work.

---
***
___

Result


Quick Tip

Use horizontal rules between major sections instead of adding extra blank lines.

Escaping Characters

Sometimes you want Markdown symbols to appear as normal text.

Use a backslash (\) before the character.

Example

\*Not Italic\*

Result

Not Italic


Common Characters You Can Escape

\*
\_
\`
\#
\[
\]
\(
\)
\\

Escaping characters is especially useful when writing tutorials or documentation about Markdown itself.


HTML Inside Markdown

Most Markdown editors allow basic HTML.

Example:

<b>Bold Text</b>

<br>

<sup>2</sup>

<sub>2</sub>

HTML is helpful when Markdown alone cannot produce the formatting you need.

Keep HTML usage minimal so your document stays readable.

GitHub Flavored Markdown (GFM)

GitHub uses a version of Markdown called GitHub Flavored Markdown (GFM). It includes everything in standard Markdown, plus a few extra features that make documentation easier to write.

Some of the most useful GFM features include:

  • Task lists
  • Tables
  • Strikethrough text
  • Syntax highlighting for code blocks
  • Automatic URL linking

If you're writing a README file, project documentation, or issue template, GFM is the Markdown version you'll use most often.

Example

- [x] Documentation completed
- [ ] Add screenshots
- [ ] Review examples

Markdown in Obsidian

Obsidian stores notes as Markdown files, making them easy to edit, move, and back up.

Besides standard Markdown, Obsidian also supports features like:

  • Wiki links
  • Callouts
  • Tags
  • Graph view
  • Internal note links

Example:

[[Daily Notes]]

# Meeting Notes

- Review project
- Update documentation

If you use Obsidian every day, learning standard Markdown first makes everything else much easier.

Markdown in Discord

Discord supports only a small part of Markdown.

Common formatting includes:

Formatting Syntax
Bold **Text**
Italic *Text*
Underline __Text__
Strikethrough ~~Text~~
Inline Code code
Code Block

Not every Markdown feature works inside Discord, so tables and many advanced elements won't render.

Common Markdown Mistakes

Even experienced users make small formatting mistakes.

Missing Space After a Heading

Wrong:

##Heading

Correct:

## Heading

Forgetting Blank Lines

Markdown is easier to read when sections are separated with blank lines.

Instead of writing everything together, leave a blank line between headings, paragraphs, and lists.


Broken Links

Always check that your URLs are correct.

Instead of:

[Website]()

Use:

[Website](https://example.com)

Uneven Tables

Every table row should contain the same number of columns.

Incorrect tables may not render properly on GitHub or other Markdown editors.


Mixing List Styles

Instead of switching between -, *, and +, choose one style and use it consistently throughout the document.

Best Practices

Markdown is simple, but a few habits make your documents much easier to read.

  • Keep headings short and descriptive.
  • Use meaningful link text.
  • Break long paragraphs into smaller sections.
  • Preview your document before publishing.
  • Use code blocks for commands and source code.
  • Add alt text to images.
  • Keep table columns aligned where possible.
  • Avoid unnecessary HTML unless Markdown cannot do the job.

Simple formatting is usually the easiest to maintain.


Markdown Cheat Sheet for Everyday Work

If you're using Markdown regularly, you'll probably use these elements most often:

  • Headings
  • Lists
  • Links
  • Images
  • Tables
  • Code blocks
  • Task lists

Learning these few features is enough for most README files, documentation pages, technical guides, and personal notes.

You don't need to memorize every syntax. That's exactly why this cheat sheet exists.

Bookmark this page and come back whenever you need a quick reminder.

Final Thoughts

This page documents the Markdown syntax used in most everyday projects. Platform-specific sections and troubleshooting notes follow below.

Practice in the Markdown Editor, format tables with the Markdown Table Generator, or convert existing content with HTML to Markdown and Word to Markdown.

Complete Markdown Reference

By this point, you've covered the Markdown syntax used in most everyday projects. The remaining sections focus on platform-specific features, practical tips, and common mistakes that help you write cleaner Markdown with fewer formatting issues.

TaskMarkdown Syntax
Link[Text](URL)
Image![Alt](image.png)
Inline Code`code`
Code Block```language
Table| Column | Value |
Task List- [ ] Item
Horizontal Rule---
Escape Character\

Frequently Asked Questions

  1. 1

    What is Markdown?

    Markdown is a lightweight text formatting language that lets you create headings, lists, links, tables, code blocks, and more using simple plain text.

  2. 2

    Is Markdown free?

    Yes. Markdown is an open standard and can be used without paying for software or licenses.

  3. 3

    Where is Markdown used?

    Markdown is commonly used on GitHub, GitLab, Obsidian, Notion, Stack Overflow, documentation websites, project wikis, and many blogging platforms.

  4. 4

    Is GitHub Markdown different?

    GitHub supports GitHub Flavored Markdown (GFM), which adds extra features such as task lists, tables, and syntax highlighting while remaining compatible with standard Markdown.

  5. 5

    Can I write HTML inside Markdown?

    Many Markdown editors allow basic HTML. However, using Markdown whenever possible keeps documents cleaner and easier to maintain.

  6. 6

    How do I create tables in Markdown?

    Tables use vertical bars (|) to separate columns and dashes (---) to create the header row. For large or complex tables, using a Markdown Table Generator is usually faster than writing them manually.

  7. 7

    Which Markdown editor should I use?

    Popular choices include VS Code, Obsidian, Typora, MarkText, and online Markdown editors. The best option depends on your workflow and the features you need.

  8. 8

    Can I convert Markdown into other formats?

    Yes. Markdown can be converted into HTML, PDF, Word documents, plain text, email-friendly HTML, images, spreadsheets, and many other formats using dedicated conversion tools.