Mermaid UML Diagrams: Supported Types and Limitations
Learn which UML diagrams Mermaid supports, where it uses approximations, and when to choose sequence, class, state, ER, flowchart, or PlantUML.
Tutorials, guides, and best practices for UML diagramming
Follow this topic in order, or jump to the article you need.
Follow this topic in order, or jump to the article you need.
按顺序阅读这个主题,或直接跳到你需要的文章。
Follow this topic in order, or jump to the article you need.
按顺序阅读这个主题,或直接跳到你需要的文章。
Learn which UML diagrams Mermaid supports, where it uses approximations, and when to choose sequence, class, state, ER, flowchart, or PlantUML.
Explore copyable PlantUML examples for sequence, class, ER, C4, activity, component, and state diagrams, then learn how to style, save, and export them.
探索可复制的 PlantUML 时序图、类图、ER 图、C4 架构图、活动图、组件图和状态图示例,并学习如何设置样式、保存和导出。
Choose Mermaid for everyday documentation and PlantUML for formal UML or complex architecture. Compare capabilities, version limits, and delivery scenarios.
日常文档默认 Mermaid,正式 UML 与复杂架构图默认 PlantUML。通过交付物决策、能力矩阵与专项入口,选择适合团队的图表即代码工具。
Learn Mermaid flowchart syntax with practical examples for authentication, CI/CD, microservices, error handling, SSO, and e-commerce workflows.
Learn Mermaid sequence diagram syntax for participants, messages, notes, activation, control flow, and maintainable API documentation with runnable examples.
基于 2026-07-22 官方语法核验,对比 Mermaid 与 PlantUML 的普通状态流、复合状态边界、历史状态、进入/退出点和并行区域,给出正式状态机选型。
Compare Mermaid Flowchart and PlantUML activity syntax for branches, loops, fork/join, and early exits. Learn why formal activity models favor PlantUML.
聚焦 Mermaid Flowchart 与 PlantUML 活动图的开始结束、分支、循环、fork/join 和提前终止,说明正式活动图为何默认选 PlantUML。
Mermaid C4 remains experimental as of July 22, 2026. Compare its five views, documented limits, formal architecture fit, and governance with C4-PlantUML.
截至 2026-07-22,Mermaid C4 仍为 experimental,支持 5 类图却短期缺 sprite、tags、link、Legend;正式 C4 图优先 C4-PlantUML。
Compare Mermaid and PlantUML class diagrams for relationships, namespaces, association classes, view trimming, and maintainable formal UML documentation.
基于 2026-07-22 官方语法核验,对比 Mermaid 与 PlantUML 的类关系、声明元素、关联类、视图裁剪、嵌套 namespace 与样式治理,给出正式 UML 类图的选型结论。
OnUML uses Mermaid 11.6.0, where subgraph only approximates lanes. Compare it with 11.16.0 swimlane-beta and PlantUML activity swimlanes for role ownership.
区分 OnUML Mermaid 11.6.0 的 subgraph 分组与 11.16.0 swimlane-beta,说明为何角色职责和跨泳道交接默认选 PlantUML。
Mermaid covers six common control fragments. PlantUML adds dedicated return, autoactivation, reference, and pagination syntax for complex interaction flows.