Markdown Cheat Sheet: Syntax You Will Use Every Day
Writing & text · Published October 17, 2026 · Updated October 24, 2026 · 3 min read
Written by Akinrinmade Michael
Markdown is a way of writing formatted text using ordinary characters. You type a few symbols, and software turns them into headings, lists and links. It's used on GitHub, in documentation, in notes apps and in many blogs. This page is the short version, with examples you can copy.
Text formatting
**bold**makes bold text.*italic*or_italic_makes italic text.~~strike~~crosses text out on most platforms.- Wrap a short piece of code in single backtick characters to format it as code inline.
Headings
Put one to six hash signs at the start of a line, followed by a space. One hash is the biggest heading and six is the smallest. The space matters: #Title isn't a heading, and # Title is.
# Main title ## Section ### Sub-section
Lists
- Bullet item - Another item - Indented item 1. First step 2. Second step - [ ] A task to do - [x] A task that's done
Indent a nested item by two or four spaces. The last two lines are task lists, which work on GitHub and in many notes apps.
Links and images
[Link text](https://example.com) 
An image is the same as a link with an exclamation mark in front. Always fill in the text in square brackets, because it's read aloud for people who can't see the image.
Code blocks and quotes
```js
console.log("hello");
```
> A quoted line starts with a greater-than sign.Tables
Tables use pipes and dashes, and colons in the divider row set the alignment. They're tedious to type by hand, so build one in a grid with the Markdown Table Generator, or paste cells straight from a spreadsheet.
| Name | Score | | :---- | ----: | | Ada | 98 | | Linus | 95 |
Line breaks and paragraphs
A single line break inside a paragraph is usually ignored, and the lines run together. Leave a blank line to start a new paragraph. For a line break without a new paragraph, end the line with two spaces, or use a backslash on some platforms.
Showing special characters
To show a character that Markdown would use, such as an asterisk or an underscore, put a backslash in front: \*not italic\*. Inside a code span, nothing needs escaping. Underscores inside words, like snake_case_name, can turn into italics on some platforms, so wrap names like that in backticks.
Flavors of Markdown
Markdown isn't a single standard. The original has few features. CommonMark tidied up the rules, and GitHub Flavored Markdown adds tables, task lists, strikethrough and automatic links. If something works in one place and not another, a different flavor is usually the reason.
A starter template
# Project name One sentence about what it does. ## Install 1. Download the files 2. Run the setup script ## Usage ``` command --option value ``` ## License MIT
Common mistakes
- Forgetting the space after the hash or the dash.
- Not leaving a blank line before a list or a table.
- Using tabs and spaces inconsistently in nested lists.
- Putting a table in a place that doesn't support them.
Practice and convert
Write and preview your text side by side in the Markdown Previewer. If you already have a web page or an HTML snippet, the HTML to Markdown Converter turns it into clean Markdown for you.
HTML inside Markdown
Most Markdown renderers let you drop in a little HTML when the syntax runs out, for things like a line break inside a table cell, a colored span or a collapsible section. Many sites strip or limit raw HTML for safety, so treat it as a last resort and preview the result where it'll be published. If you find yourself writing a lot of HTML, the page probably wants a different format.