1.6 KiB
title, date, excerpt
title | date | excerpt |
---|---|---|
Using Markdown in Your Blog | 2023-08-10 | 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__
Strikethroughwith~~tildes~~
Lists
Unordered lists use asterisks, pluses, or hyphens:
```
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2 ```
Ordered lists use numbers:
```
- First item
- Second item
- Third item ```
Advanced Formatting
Links
Create links with [link text](URL)
:
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.