← Back to Blog

Complete Markdown Guide

A comprehensive guide to writing in Markdown for your blog

πŸ“… ✍️ Seanine Consulting
markdownwritingguide

Complete Markdown Guide

This post demonstrates all the common Markdown features you can use in your blog posts.

Headings

You can use headings from H1 to H6:

H1 Heading

H2 Heading

H3 Heading

H4 Heading

H5 Heading
H6 Heading

Text Formatting

You can make text bold, italic, or bold and italic.

You can also use strikethrough text.

Create inline links or reference-style links.

Images work similarly:

Astro Logo

Lists

Unordered Lists

Ordered Lists

  1. First item
  2. Second item
  3. Third item
    1. Nested ordered item
    2. Another nested item

Task Lists

Code

Inline code looks like this.

Code blocks with syntax highlighting:

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

console.log(greet('World'));
def fibonacci(n):
    if n <= 1:
        return n
    return fibonacci(n-1) + fibonacci(n-2)

print(fibonacci(10))

Blockquotes

This is a blockquote. It can span multiple lines.

And even be nested!

Horizontal Rules

You can create horizontal rules with three or more hyphens, asterisks, or underscores:


Tables

FeatureMarkdownMDX
Simple syntaxβœ“βœ“
Componentsβœ—βœ“
Fastβœ“βœ“
Interactiveβœ—βœ“

HTML

You can also use HTML directly in Markdown:

Custom HTML Block

Markdown allows you to mix in HTML when you need more control over styling or structure.

Footnotes

Here’s a sentence with a footnote1.

Emoji

You can use emoji in your markdown! πŸš€ ✨ πŸŽ‰

Conclusion

This covers most of the Markdown syntax you’ll need for writing blog posts. Experiment with these features to create engaging content!

Footnotes

  1. This is the footnote content. ↩