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 公式测试
$$ F=ma^2 $$
