Markdown Cheat Sheet
| Feature | Syntax | Example |
|---|---|---|
| Headings | # H1 through ###### H6 | # Heading 1 → # Heading 1 |
| Bold | **text** or __text__ | **bold text** → bold text |
| Italic | *text* or _text_ | *italic text* → italic text |
| Bold & Italic | ***text*** or ___text___ | ***bold italic*** → bold italic |
| Strikethrough | ~~text~~ | ~~strikethrough~~ → |
| Inline Code | `code` | `const x = 1` → const x = 1 |
| Code Block | ```language + code + ``` | See code block example below |
| Link | [text](url) | [Google](https://google.com) → Google |
| Image |  |  |
| Unordered List | - item or * item | - Item 1 → - Item 1 |
| Ordered List | 1. item | 1. First → 1. First |
| Task List | - [ ] or - [x] | - [ ] Todo → - [ ] Todo |
| Blockquote | > text | > This is a quote → > This is a quote |
| Horizontal Rule | --- or *** | --- → --- |
| Table | | Col1 | Col2 | + | --- | --- | + | Data | Data | | See table example below |
| Line Break | Two spaces + Enter (or just Enter with remark-breaks) | Single line breaks are preserved |
| Escape Characters | \*text\* | \*not italic\* → *not italic* |
| Autolink | https://example.com | URLs auto-convert to links |
| Nested Lists | Indent with 2 spaces | - Item then - Subitem |
| Table Alignment | :--- (left), :---: (center), ---: (right) | See table example below |
Extended Examples
Table Example
| Feature | Supported | Notes |
|---|---|---|
| Tables | ✅ | Full GFM support |
| Alignment | ✅ | Left, center, right |
| Strikethrough | ✅ | ~~text~~ |
| Task Lists | ✅ | - [ ] and - [x] |
Code Block Example
function greet(name) {
return `Hello, ${name}!`;
}
Nested Lists Example
- First item
- Nested item
- Another nested item
- Second item
- More nesting
- Even deeper
- More nesting
Blockquote with Formatting
This is a blockquote with formatting and a link
Mixed Formatting
This paragraph has bold, italic, both, code, and strikethrough text.