Files
HomeVibes/posts/using-markdown.md
2025-05-06 23:09:47 +02:00

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__
  • 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

Create links with [link text](URL):

Visit GitHub

Images

Add images with ![alt text](image URL):

Next.js Logo

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.