Skip to content

Commit 4b1b8a0

Browse files
committed
a
1 parent 67bc979 commit 4b1b8a0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

_posts/2025-04-02-Github中的markdown渲染数学公式的注意事项.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ $$
2222

2323
first-order-accurate
2424

25-
$$(\frac{\partial u}{\partial x}) _{i,j}=\frac{u _{i+1,j}-u _{i,j}}{\Delta x}+O(\Delta x)
25+
$$
26+
(\frac{\partial u}{\partial x}) _{i,j}=\frac{u _{i+1,j}-u _{i,j}}{\Delta x}+O(\Delta x)
2627
$$
2728

2829
在Github网页预览时会渲染失败:
2930

3031
first-order-accurate
31-
$$(\frac{\partial u}{\partial x})_{i,j}=\frac{u_{i+1,j}-u_{i,j}}{\Delta x}+O(\Delta x)
32+
$$
33+
(\frac{\partial u}{\partial x})_{i,j}=\frac{u_{i+1,j}-u_{i,j}}{\Delta x}+O(\Delta x)
3234
$$
3335

3436
此时需要将所有的下标(如`_{i,j}`)前添加空格,并在行间公式前后添加空行:
@@ -45,5 +47,6 @@ $$
4547

4648
first-order-accurate
4749

48-
$$(\frac{\partial u}{\partial x}) _{i,j}=\frac{u _{i+1,j}-u _{i,j}}{\Delta x}+O(\Delta x)
50+
$$
51+
(\frac{\partial u}{\partial x}) _{i,j}=\frac{u _{i+1,j}-u _{i,j}}{\Delta x}+O(\Delta x)
4952
$$

0 commit comments

Comments
 (0)