Markdown / Code / LaTeX Test Page

Headings

H3 Heading

H4 Heading


Text styles

  • Bold
  • Italic
  • Bold + Italic
  • Strikethrough
  • inline code
  • Escape test: *literal asterisks*, _literal underscores_, $literal dollar$

Links & Images

  • Link: example.com
  • Relative link example: Home
  • Image (if your renderer supports it): Placeholder

Lists

Unordered (nested)

  • Item A
    • Item A-1
    • Item A-2
      • Item A-2-a
  • Item B

Ordered (nested)

  1. Step 1
  2. Step 2
    1. Step 2-1
    2. Step 2-2
  3. Step 3

Task list (renderer dependent)

  • Done
  • Todo

Blockquote

This is a blockquote.

  • It can include lists
  • And multiple paragraphs

Horizontal rule


Table

ColumnTypeNotes
namestringleft-aligned
countintright-aligned
scorefloatcan include inline code

Footnotes (renderer dependent)

This sentence has a footnote.1


Code blocks

Python

from dataclasses import dataclass

@dataclass
class Config:
    lr: float = 1e-4
    batch_size: int = 64

def train_step(x, y, model, cfg: Config):
    pred = model(x)
    loss = ((pred - y) ** 2).mean()
    return loss

Bash

set -euo pipefail
echo "Hello, Markdown!"
ls -al

JSON

{
  "name": "Gyuseong Lee",
  "role": "Computer Vision Researcher",
  "interests": ["diffusion", "flow", "data-centric"]
}

YAML

model:
  name: "example"
  params:
    lr: 1e-4
    wd: 1e-2

C++ (including templates)

#include <iostream>
#include <vector>

template <typename T>
T sum(const std::vector<T>& v) {
    T s{};
    for (const auto& x : v) s += x;
    return s;
}

int main() {
    std::vector<int> v{1,2,3};
    std::cout << sum(v) << "\n";
    return 0;
}

CUDA-like snippet (syntax highlighting varies)

__global__ void saxpy(int n, float a, const float* x, float* y) {
    int i = blockIdx.x * blockDim.x + threadIdx.x;
    if (i < n) y[i] = a * x[i] + y[i];
}

Diff

- old_line = 1
+ new_line = 2

LaTeX math

Inline math

We often write an inline equation like ( \sigma(x) = \frac{1}{1 + e^{-x}} ).

Display math

L(θ)=E(x,y)D[(fθ(x),y)]\mathcal{L}(\theta) = \mathbb{E}*{(x,y)\sim \mathcal{D}}\big[\ell(f*\theta(x), y)\big]

Aligned equations

MSE=1Ni=1N(yiy^i)2 MAE=1Ni=1Nyiy^i\begin{aligned} \text{MSE} &= \frac{1}{N}\sum_{i=1}^N (y_i - \hat{y}*i)^2 \ \text{MAE} &= \frac{1}{N}\sum*{i=1}^N |y_i - \hat{y}_i| \end{aligned}

Matrices

A=[123 456],x=[x1 x2 x3]A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix} ,\quad x = \begin{bmatrix} x_1\ x_2\ x_3 \end{bmatrix}

Cases (piecewise)

f(x)={x2if x0 xif x<0f(x)= \begin{cases} x^2 & \text{if } x \ge 0 \ -x & \text{if } x < 0 \end{cases}

Common symbols

θL,Rd,x2,a,b,softmax(z)i=ezijezj\nabla_\theta \mathcal{L},\quad \mathbb{R}^d,\quad |x|_2,\quad \langle a, b \rangle,\quad \operatorname{softmax}(z)_i = \frac{e^{z_i}}{\sum_j e^{z_j}}

Edge cases (escaping)

  • Asterisk: * not italic *
  • Underscore: _ not emphasis _
  • Backtick inside code: use `backticks` safely
  • Dollar sign: $100 is not math

Footnotes

  1. This is the footnote content.