Markdown is a lightweight markup language that makes it easy to write formatted text using plain text. This guide will help you master the basics.
Why Markdown?
Markdown offers several advantages for blog writing:
- Simple syntax - Easy to learn and use
- Readable - Plain text is readable even without rendering
- Portable - Works everywhere, no proprietary formats
- Fast - Write without taking your hands off the keyboard
- Version control friendly - Perfect for Git
Basic Syntax
Paragraphs
Simply write text. Leave a blank line between paragraphs.
This is a new paragraph.
Headers
# H1 Header
## H2 Header
### H3 Header
Emphasis
- Italic with
*asterisks*or_underscores_ - Bold with
**double asterisks**or__double underscores__ - Bold and italic with
**_combined_**
Lists
Unordered lists use -, *, or +:
- First item
- Second item
- Third item
Ordered lists use numbers:
1. First item
2. Second item
3. Third item
Links and Images
Links: [Link text](URL)
Images: 
Code
Inline code uses single backticks: const x = 10;
Code blocks use triple backticks:
function hello(name) {
console.log(`Hello, ${name}!`);
}
Blockquotes
Use > for blockquotes:
Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
- John Gruber
Advanced Features
Horizontal Rules
Create a horizontal rule with --- or ***:
Nested Lists
You can nest lists by indenting:
- First item
- Nested item
- Another nested item
- Second item
Tips for Blog Writing
- Use descriptive headers - Help readers scan your content
- Keep paragraphs short - Easier to read on screens
- Use code blocks - Show examples clearly
- Add images - Visual content engages readers
- Link generously - Connect related content
Practice Exercise
Try creating a post with:
- Multiple header levels
- Both ordered and unordered lists
- At least one code block
- A blockquote
- Links to other posts
What's Next?
Now that you understand markdown basics, check out the welcome post to learn more about organizing your blog content with tags and categories.
Resources
- Markdown Guide: https://www.markdownguide.org/
- CommonMark Spec: https://commonmark.org/
- GitHub Flavored Markdown: https://github.github.com/gfm/
Happy writing!