85 lines
1.6 KiB
Markdown
85 lines
1.6 KiB
Markdown
---
|
|
title: "Using Markdown in Your Blog"
|
|
date: "2023-08-10"
|
|
excerpt: "Learn how to format your blog posts using Markdown syntax"
|
|
---
|
|
|
|
# Using Markdown in Your Blog
|
|
|
|
Markdown is a lightweight markup language that allows you to write using an easy-to-read, easy-to-write plain text format, which then converts to valid HTML for viewing on your blog.
|
|
|
|
## Basic Formatting
|
|
|
|
### Headers
|
|
|
|
You can create headers using the `#` symbol:
|
|
|
|
\`\`\`
|
|
# Header 1
|
|
## Header 2
|
|
### Header 3
|
|
\`\`\`
|
|
|
|
### Emphasis
|
|
|
|
For emphasis, you can use:
|
|
|
|
- *Italics* with `*asterisks*` or `_underscores_`
|
|
- **Bold** with `**double asterisks**` or `__double underscores__`
|
|
- ~~Strikethrough~~ with `~~tildes~~`
|
|
|
|
### Lists
|
|
|
|
Unordered lists use asterisks, pluses, or hyphens:
|
|
|
|
\`\`\`
|
|
- Item 1
|
|
- Item 2
|
|
- Subitem 2.1
|
|
- Subitem 2.2
|
|
\`\`\`
|
|
|
|
Ordered lists use numbers:
|
|
|
|
\`\`\`
|
|
1. First item
|
|
2. Second item
|
|
3. Third item
|
|
\`\`\`
|
|
|
|
## Advanced Formatting
|
|
|
|
### Links
|
|
|
|
Create links with `[link text](URL)`:
|
|
|
|
[Visit GitHub](https://github.com)
|
|
|
|
### Images
|
|
|
|
Add images with ``:
|
|
|
|

|
|
|
|
### Code
|
|
|
|
Inline code uses backticks: `const greeting = "Hello";`
|
|
|
|
Code blocks use triple backticks with an optional language identifier:
|
|
|
|
\`\`\`javascript
|
|
function calculateSum(a, b) {
|
|
return a + b;
|
|
}
|
|
\`\`\`
|
|
|
|
### Blockquotes
|
|
|
|
> Blockquotes use the > character at the start of a line.
|
|
>
|
|
> They can span multiple paragraphs if you include a > on blank lines between them.
|
|
|
|
## Conclusion
|
|
|
|
Markdown makes it easy to format your blog posts without having to write HTML. It's simple to learn and provides all the formatting options you need for most blog posts.
|