Markdown Guide

Markdown Guide

This post demonstrates all the Markdown features supported on this blog.

Text Formatting

Bold text, italic text, strikethrough, and inline code.

Blockquotes

This is a blockquote.

It can span multiple paragraphs.

Lists

Unordered List

  • Item one
  • Item two
    • Nested item
    • Another nested item
  • Item three

Ordered List

  1. First step
  2. Second step
  3. Third step

Code Blocks

JavaScript

function greet(name) {
  console.log(`Hello, ${name}!`);
}

greet('Astro');

Python

def fibonacci(n):
    a, b = 0, 1
    for _ in range(n):
        yield a
        a, b = b, a + b

print(list(fibonacci(10)))

Bash

# Install dependencies
npm install

# Start development server
npm run dev

Tables

FeatureSupportNotes
MarkdownFull GFM
LaTeX MathKaTeX rendering
Code HighlightShiki
RSSAuto-generated
SearchFuse.js
Dark ModeSystem preference

Astro Documentation

External link: GitHub

Images

Placeholder

LaTeX Math

Inline Math

Einstein’s equation: E=mc2E = mc^2

The quadratic formula: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Display Math

ex2dx=π\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi} ×E=Bt\nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t} f(x)={x2if x0x2if x<0f(x) = \begin{cases} x^2 & \text{if } x \geq 0 \\ -x^2 & \text{if } x < 0 \end{cases}

Footnotes

Here’s a sentence with a footnote1.

Horizontal Rule


Task List

  • Create Astro blog
  • Add Markdown support
  • Implement search functionality
  • Add comments system
  • Deploy to production

HTML

Some inline styled HTML works too.

Click to expand Hidden content revealed!

Footnotes

  1. This is the footnote content.