修改公式

This commit is contained in:
2025-08-11 00:54:32 +08:00
parent 6c061b1e58
commit 423cd07cd9
4 changed files with 23 additions and 5 deletions

View File

@@ -140,8 +140,9 @@ d_{x + 1, y + 1} &\leftarrow d_{x + 1, y + 1} + 1
$$ $$
### 以下是使用mate字段包裹 ### 以下是使用mate字段包裹
```math
```math[mate.md]
\begin{aligned} \begin{aligned}
d_{i, j} &\leftarrow d_{i, j} + 1 \\ d_{i, j} &\leftarrow d_{i, j} + 1 \\
d_{i, y + 1} &\leftarrow d_{i, y + 1} - 1 \\ d_{i, y + 1} &\leftarrow d_{i, y + 1} - 1 \\
@@ -170,6 +171,21 @@ d_{x + 1, y + 1} &\leftarrow d_{x + 1, y + 1} + 1
Mermaid 是强大的可视化工具,可以在 Markdown 中创建流程图、时序图等。 Mermaid 是强大的可视化工具,可以在 Markdown 中创建流程图、时序图等。
```mermaid
---
config:
layout: dagre
look: classic
---
flowchart LR
A[Start] --> B{Choose Path}
B -->|Option 1| C[Path 1]
B -->|Option 2| D[Path 2]
```
```mermaid ```mermaid
graph TD graph TD
A[Local Coolify 实例] --> B[生产服务器] A[Local Coolify 实例] --> B[生产服务器]

View File

@@ -36,10 +36,8 @@ export default defineNuxtConfig({
} }
}, },
remarkPlugins: { remarkPlugins: {
// Override remark-emoji options
'remark-mermaidjs': { 'remark-mermaidjs': {
}, },
'remark-gfm': {}, 'remark-gfm': {},
'remark-math': {} 'remark-math': {}
}, },

View File

@@ -45,7 +45,8 @@
"playwright": "^1.54.2", "playwright": "^1.54.2",
"rehype-mathjax": "^7.1.0", "rehype-mathjax": "^7.1.0",
"remark-math": "^6.0.0", "remark-math": "^6.0.0",
"remark-mermaidjs": "^7.0.0" "remark-mermaidjs": "^7.0.0",
"remark-rehype": "^11.1.2"
}, },
"devDependencies": { "devDependencies": {
"@iconify-json/lucide": "^1.2.57", "@iconify-json/lucide": "^1.2.57",

3
pnpm-lock.yaml generated
View File

@@ -53,6 +53,9 @@ importers:
remark-mermaidjs: remark-mermaidjs:
specifier: ^7.0.0 specifier: ^7.0.0
version: 7.0.0(playwright@1.54.2) version: 7.0.0(playwright@1.54.2)
remark-rehype:
specifier: ^11.1.2
version: 11.1.2
devDependencies: devDependencies:
'@iconify-json/lucide': '@iconify-json/lucide':
specifier: ^1.2.57 specifier: ^1.2.57