Headings, emphasis and paragraphs
- Heading — one to six # at the start of a line: `# H1`, `## H2` … `###### H6`
- Bold — two asterisks or underscores: `**bold**` or `__bold__`
- Italic — one asterisk or underscore: `*italic*` or `_italic_`
- Bold italic — three: `***both***`
- Strikethrough (GFM) — `~~struck~~`
- A blank line starts a new paragraph; a single newline usually does not.
Lists and tasks
- Unordered — `- item`, `* item` or `+ item`
- Ordered — `1. item`, `2. item` (numbers are automatic)
- Nested — indent by two or four spaces under the parent
- Task list — `- [ ] todo` and `- [x] done`
Links, images and code
- Link — `[text](https://example.com)`
- Image — ``
- Inline code — backticks: `` `code` ``
- Code block — three backticks, with an optional language: ```` ```js ````
- Reference link — `[text][id]` with `[id]: https://…` defined elsewhere
Blocks and tables
- Blockquote — `> quoted text`
- Horizontal rule — three or more `---`, `***` or `___`
- Table — a header row, a `| --- |` separator row, then data rows
- Line break — two trailing spaces, or a blank line
Frequently Asked Questions
Do all Markdown apps support the same syntax?
No. Basic Markdown is standardised; tables, task lists, strikethrough and autolinks come from GitHub-Flavoured Markdown (GFM) and are supported by GitHub, GitLab, many editors and this site. Syntax highlighting in code blocks is also a common extension.
How do I put a literal asterisk in text?
Escape it with a backslash: `\*` renders as a literal asterisk. The same works for backticks, underscores and other special characters.
Which is better for emphasis, asterisks or underscores?
Use asterisks. Underscores are ambiguous inside words and many renderers only treat them as emphasis at word boundaries, so asterisks are more predictable.
How many spaces indent a nested list?
Two spaces is the minimum and four is the classic convention; consistency within a document matters more than the exact number.