Markdown Test

Text

这是中文。

This is English.

中文 + English 混排测试:Hugo 使用 goldmark 渲染,支持 加粗斜体行内代码链接

List

  • Item 1
  • Item 2
  • Item 3

有序列表:

  1. First
  2. Second
  3. Third

Quote

Hello Hugo.

Code

C++:

#include <bits/stdc++.h>
using namespace std;

int main() {
    cout << "Hello Hugo\n";
    return 0;
}

Python:

import numpy as np

x = np.arange(10)
print(x)

Bash:

echo "hello" && ls -la

JSON:

{
  "name": "hugo",
  "version": "0.165.0"
}

YAML:

title: Markdown Test
draft: false
tags: [Markdown]

Formula

行内公式:$E = mc^2$

块公式(单行):

$$ \int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2} $$

求和公式:

$$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$

多行对齐公式(aligned):

$$ \begin{aligned} (a+b)^2 &= a^2 + 2ab + b^2 \\ (a-b)^2 &= a^2 - 2ab + b^2 \end{aligned} $$

矩阵:

$$ \begin{pmatrix} a & b \\ c & d \end{pmatrix} $$

Table

语言支持备注
C++高性能
Python易用
Rust安全

Footnote

这是一段带脚注的文字1


  1. 脚注内容示例。 ↩︎