Test
ChangYo
·
·
h1 一级标题
h2 二级标题
h3 三级标题
h4 四级标题
h5 五级标题
h6 六级标题
text 文本
BOLD 加粗文本
inline code 行内代码
短代码块:
# --> comment
print("codeblock")长代码块测试:
Show code (36 lines)
const canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d");
document.body.appendChild(canvas);
document.body.style.margin = "0";
document.body.style.overflow = "hidden";
document.body.style.background = "#000";
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
window.addEventListener("resize", resize);
resize();
const particles = Array.from({ length: 100 }, () => ({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
r: Math.random() * 3 + 1,
vx: (Math.random() - 0.5) * 2,
vy: (Math.random() - 0.5) * 2,
}));
function animate() {
ctx.fillStyle = "rgba(0, 0, 0, 0.05)";
ctx.fillRect(0, 0, canvas.width, canvas.height);
particles.forEach((p) => {
p.x = (p.x + p.vx + canvas.width) % canvas.width;
p.y = (p.y + p.vy + canvas.height) % canvas.height;
ctx.beginPath();
ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
ctx.fillStyle = `hsl(${(p.x + p.y) % 360}, 80%, 60%)`;
ctx.fill();
});
requestAnimationFrame(animate);
}
animate();mermaid矢量图测试测试:
flowchart
A -- B有序列表:
- list-1
- list-2
无序列表:
- item-1
- item-2
quote 引用块
分割线↓
分割线↑
图像测试:
脚本测试:
- Bilibili
- YouTube
音乐播放测试:
再来一首:
Latex 公式测试
行内公式: $\sum_{i=1}^{n} i$
行间公式:
$$ E=mc^2 $$超长行间公式:
$$ f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left( -\frac{(x-\mu)^2}{2\sigma^2} \right) + \sum*{n=1}^{\infty} \frac{(-1)^n}{n!} \left( \int*{0}^{\infty} t^{n-1} e^{-t} \, dt \right) \cdot \prod*{k=1}^{n} \frac{\alpha_k + \beta_k}{\gamma_k} - \lim*{m \to \infty} \left( 1 + \frac{x}{m} \right)^{\!m} $$