Loading...
Loading...
Compare original and translation side by side
agent-browseragent-browserdefaultdefaultA -->|label| B
A ---|label| BA -- label --> B # May cause issuesA -->|label| B
A ---|label| BA -- label --> B # 可能会出现问题A["Label with (parens)"]
B["Label with / slash"]A["Label with (parens)"]
B["Label with / slash"]references/mermaid-syntax.mdreferences/mermaid-syntax.mdbun run scripts/render.ts --code "graph TD; A-->B" --output diagram --theme defaultbun run scripts/render.ts --input diagram.mmd --output diagram --theme tokyo-nightnpx tsx scripts/render.ts --code "..." --output diagram
deno run --allow-read --allow-write --allow-net scripts/render.ts --code "..." --output diagram<output>.svgbun run scripts/render.ts --code "graph TD; A-->B" --output diagram --theme defaultbun run scripts/render.ts --input diagram.mmd --output diagram --theme tokyo-nightnpx tsx scripts/render.ts --code "..." --output diagram
deno run --allow-read --allow-write --allow-net scripts/render.ts --code "..." --output diagram<output>.svgbun run scripts/create-html.ts --svg diagram.svg --output diagram.htmlbun run scripts/create-html.ts --svg diagram.svg --output diagram.htmlagent-browserundefinedagent-browserundefined
For even higher resolution on complex diagrams, increase the viewport further or use the `--padding` option when creating the HTML wrapper to give the diagram more space.
对于更复杂的图表,要获得更高分辨率,可以进一步增大视口,或在创建HTML包装器时使用`--padding`选项为图表预留更多空间。.svg.pngdiagram.html.mmdrm diagram.html.mmd.svg.pngdiagram.html.mmdrm diagram.html.mmd| Theme | Background | Best For |
|---|---|---|
| default | Light grey | General use |
| dracula | Dark purple | Dark mode preference |
| tokyo-night | Dark blue | Modern dark aesthetic |
| tokyo-night-storm | Darker blue | Higher contrast |
| nord | Dark arctic | Muted, calm visuals |
| nord-light | Light arctic | Light mode with soft tones |
| github-dark | GitHub dark | Matches GitHub UI |
| github-light | GitHub light | Matches GitHub UI |
| catppuccin-latte | Warm light | Soft pastel aesthetic |
| solarized | Tan/cream | Solarized colour scheme |
| one-dark | Atom dark | Atom editor aesthetic |
| zinc-dark | Neutral dark | Minimal, no colour bias |
| 主题 | 背景 | 最佳适用场景 |
|---|---|---|
| default | 浅灰色 | 通用场景 |
| dracula | 深紫色 | 深色模式偏好 |
| tokyo-night | 深蓝色 | 现代深色美学风格 |
| tokyo-night-storm | 更深的蓝色 | 高对比度需求 |
| nord | 北极深色 | 柔和、沉稳的视觉效果 |
| nord-light | 北极浅色 | 柔和色调的浅色模式 |
| github-dark | GitHub深色 | 匹配GitHub界面 |
| github-light | GitHub浅色 | 匹配GitHub界面 |
| catppuccin-latte | 暖浅色 | 柔和的粉彩美学风格 |
| solarized | 棕褐色/奶油色 | Solarized配色方案 |
| one-dark | Atom深色 | 匹配Atom编辑器风格 |
| zinc-dark | 中性深色 | 极简风格,无色彩偏差 |
bgfg--bg--fgbgfg--bg--fg-->|label|-- label -->-->|label|-- label -->graph TDgraph LRgraph TDgraph LR