Devholic Blog
Back to posts

Markdown Guide

PublishedJan 20, 2024
DescriptionA quick guide to using markdown in your posts
#markdown#guide#documentation

Markdown Guide

This is a guide to help you write posts using markdown.

Headings

Use # symbols for headings:

# Heading 1
## Heading 2
### Heading 3

Text Formatting

  • Bold: **text** or __text__
  • Italic: *text* or _text_
  • Strikethrough: ~~text~~
  • Code: `code`

Lists

Unordered Lists

- Item 1
- Item 2
  - Nested item
  - Another nested item
- Item 3

Ordered Lists

1. First item
2. Second item
3. Third item

Links and Images

  • Link: [text](https://example.com)
  • Image: ![alt text](https://example.com/image.jpg)

Code Blocks

Use triple backticks with language identifier:

```javascript
function greet(name) {
  return `Hello, ${name}!`;
}
```

Blockquotes

> This is a quote
> It can span multiple lines

This is a quote It can span multiple lines

Tables

| Column 1 | Column 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Horizontal Rule

Use --- or *** or ___:


Combining Features

You can combine markdown features together. For example, you can have:

Happy writing! 📝