Demo

Markdown & LaTeX Showcase

2025/09/23 09:53 a minute markdown latex astro

Welcome! This page demonstrates common Markdown features used in this site, plus LaTeX math. Use it as a reference when writing new content.1

Headings

H3 Heading

H4 Heading

Text styles

You can write regular paragraphs with inline styles like bold, italic, and inline code. Links also work: Astro.

Blockquotes highlight important remarks or notes.


Lists

  • Unordered item one
  • Unordered item two
    • Nested item
  1. Ordered one
  2. Ordered two
  • Task done
  • Task pending

Code blocks

// TypeScript example
type User = {
  id: string;
  name: string;
};

export function greet(user: User): string {
  return `Hello, ${user.name}!`;
}
# Shell example
pnpm install
pnpm run dev

Table

FeatureSupportedNotes
HeadingsYesH2–H4 styled by Prose
ListsYesOrdered and unordered
CodeYesFenced with language
TablesYesMarkdown tables

Image

Local content assets can be referenced relative to this file:

Sample image


LaTeX math

Inline math uses dollar signs, for example: E=mc2E = mc^2, or conditional probability (P(A\mid B) = \frac{P(A \cap B)}{P(B)}).

Block math uses double dollar signs:

0ex2dx=π2\int_{0}^{\infty} e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2}

You can also align multiple equations:

i=1ni=n(n+1)2ex2dx=π\begin{aligned} \sum_{i=1}^{n} i &= \frac{n(n+1)}{2} \\ \int_{-\infty}^{\infty} e^{-x^2} \, dx &= \sqrt{\pi} \end{aligned}

Matrices are supported by many renderers:

A=[1234]\mathbf{A} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}

Footnotes

Footnotes help with references and asides.2

Footnotes

  1. Content crafted for a quick feature tour.

  2. This is an example footnote.