Markdown provides simple and intuitive ways to format text. Learn how to make your content bold, italic, and much more!
Use ** or __ to make text bold:
**This is bold text**
**This is also bold text**Result: This is bold text This is also bold text
Use * or _ to make text italic:
_This is italic text_
_This is also italic text_Result: This is italic text This is also italic text
Combine both for emphasis:
**_Bold and italic_**
**_Bold and italic_**
_**Bold and italic**_Result: Bold and italic
Use ~~ to strike through text:
~~This text is crossed out~~Result:
This text is crossed out
Use backticks for inline code:
Use the `console.log()` function to debug.Result:
Use the console.log() function to debug.
Some Markdown flavors support these:
H~2~O (subscript)
X^2^ (superscript)Result (if supported):
H2O (subscript)
X^2^ (superscript)
Pick one style and stick with it:
✅ Consistent:
**Bold text** and _italic text_ throughout document❌ Inconsistent:
**Bold text** and _italic text_ mixed with **bold** and _italic_Add spaces around formatting when needed:
✅ Good:
This is **bold text** in a sentence.❌ Problematic:
This is**bold text**in a sentence.Be careful with nested formatting:
✅ Clear:
**This is bold with _italic_ inside**❌ Confusing:
**_This could be confusing_****Important:** Always backup your data before running this command.
_Note:_ This feature is only available in version 2.0+.
Use the `git commit` command to save your changes.
~~Deprecated:~~ The old API is no longer supported.## Function: `calculateTotal()`
**Parameters:**
- `items` (_array_): List of items to calculate
- `taxRate` (_number_): Tax rate as decimal
**Returns:** _number_ - The total amount including tax
**Example:**
```javascript
const total = calculateTotal(items, 0.08);
```Note: This function was added in version 1.2.0.
### Blog Post Formatting
```markdown
I was **absolutely amazed** by the performance improvements!
The new algorithm is *significantly faster* than the previous version. Here are the key benefits:
- **50% faster** processing time
- *Reduced* memory usage
- ~~No more~~ **Eliminated** memory leaks
You can test it yourself using the `benchmark` command.> **⚠️ Warning:** This action cannot be undone!
> **💡 Tip:** Use _keyboard shortcuts_ to speed up your workflow.
> **📝 Note:** Remember to save your work frequently.The `useState` hook returns an array with **two elements**:
1. The _current state value_
2. A **setter function** to update the state
Example: `const [count, setCount] = useState(0);`## Prerequisites
Before starting, ensure you have:
- **Node.js** version 16 or higher
- _Git_ installed and configured
- A **code editor** (we recommend _VS Code_)
- ~~Python~~ **Node.js** for backend development**GitHub supports:**
- Standard formatting
- ~~Strikethrough~~
- `Inline code`
- Automatic linking of URLs
_Additional features:_
- @mentions
- #issue-references
- Emoji :smile:**Discord/Slack syntax:**
- **bold** or **bold**
- _italic_ or _italic_
- ~~strikethrough~~
- `inline code`
- `code blocks`**Notion supports:**
- **Bold** and _italic_
- ~~Strikethrough~~
- `Inline code`
- ==Highlighting== (Notion-specific)❌ Wrong:
** This won't work **
- Neither will this \*✅ Correct:
**This will work**
_This will too_❌ Inconsistent:
**Bold** and _italic_ and **bold** and _italic_✅ Consistent:
**Bold** and _italic_ throughout❌ Too much:
**This** _is_ **way** _too_ **much** _formatting_!✅ Just right:
This is **important** and this is _emphasized_.**Important warning** (strong importance)
_Technical term_ (emphasis)
`Code snippet` (literal text)Use backslashes to escape formatting characters:
\*This won't be italic\*
\*\*This won't be bold\*\*
Use \` to show a literal backtickResult: *This won't be italic* **This won't be bold**
When Markdown isn't enough, use HTML:
Highlighted text
Small text
Ctrl + CResult:
Highlighted text Small text Ctrl + C
| Format | Syntax | Result |
|---|---|---|
| Bold | **text** | text |
| Italic | *text* | text |
| Bold + Italic | ***text*** | text |
| Strikethrough | ~~text~~ | |
| Inline Code | `text` | text |
| Subscript | ~text~ | |
| Superscript | ^text^ | ^text^ |
Remember: Good formatting enhances readability without overwhelming the reader. Use it purposefully and consistently!