[{"data":1,"prerenderedAt":568},["ShallowReactive",2],{"content-\u002Fdiagrams\u002Fmermaid":3,"root-redirect":323,"navigation":492},{"id":4,"title":5,"body":6,"category":315,"description":316,"extension":52,"meta":317,"navigation":318,"path":319,"seo":320,"stem":321,"__hash__":322},"content\u002F4.diagrams\u002Fmermaid.md","Mermaid",{"type":7,"value":8,"toc":308},"minimark",[9,14,30,33,36,39,44,47,89,92,110,112,116,119,122,125,165,167,192,194,198,201,229,232,234,238,241,244,273,277,279,283,286,304],[10,11,13],"h1",{"id":12},"mermaid-diagrams","Mermaid Diagrams",[15,16,17,18,22,23,29],"p",{},"The ",[19,20,21],"code",{},"mermaid"," component allows you to create diagrams using ",[24,25,5],"a",{"href":26,"rel":27},"https:\u002F\u002Fmermaid.js.org\u002F",[28],"nofollow"," syntax.",[15,31,32],{},"Mermaid supports many different diagram types, including flowcharts, sequence diagrams, class diagrams, state diagrams, and more.",[15,34,35],{},"Diagrams are rendered interactively and can be zoomed and moved around.",[37,38],"hr",{},[40,41,43],"h2",{"id":42},"basic-usage","Basic Usage",[15,45,46],{},"Place your Mermaid diagram inside a code block.",[48,49,54],"pre",{"className":50,"code":51,"language":52,"meta":53,"style":53},"language-md shiki shiki-themes github-light github-dark","```mermaid\nflowchart TD\nA[Start] --> B[Process]\nB --> C[End]\n```\n","md","",[19,55,56,65,71,77,83],{"__ignoreMap":53},[57,58,61],"span",{"class":59,"line":60},"line",1,[57,62,64],{"class":63},"sVt8B","```mermaid\n",[57,66,68],{"class":59,"line":67},2,[57,69,70],{"class":63},"flowchart TD\n",[57,72,74],{"class":59,"line":73},3,[57,75,76],{"class":63},"A[Start] --> B[Process]\n",[57,78,80],{"class":59,"line":79},4,[57,81,82],{"class":63},"B --> C[End]\n",[57,84,86],{"class":59,"line":85},5,[57,87,88],{"class":63},"```\n",[15,90,91],{},"Result:",[48,93,96],{"className":94,"code":95,"language":21,"meta":53,"style":53},"language-mermaid shiki shiki-themes github-light github-dark","flowchart TD\nA[Start] --> B[Process]\nB --> C[End]\n",[19,97,98,102,106],{"__ignoreMap":53},[57,99,100],{"class":59,"line":60},[57,101,70],{},[57,103,104],{"class":59,"line":67},[57,105,76],{},[57,107,108],{"class":59,"line":73},[57,109,82],{},[37,111],{},[40,113,115],{"id":114},"mermaid-syntax","Mermaid Syntax",[15,117,118],{},"The content inside the component is passed directly to Mermaid.",[15,120,121],{},"This means you can use the normal Mermaid syntax for any supported diagram type.",[15,123,124],{},"For example, a sequence diagram:",[48,126,128],{"className":50,"code":127,"language":52,"meta":53,"style":53},"```mermaid\nsequenceDiagram\n    User->>Server: Request\n    Server->>Database: Query\n    Database-->>Server: Result\n    Server-->>User: Response\n```\n",[19,129,130,134,139,144,149,154,160],{"__ignoreMap":53},[57,131,132],{"class":59,"line":60},[57,133,64],{"class":63},[57,135,136],{"class":59,"line":67},[57,137,138],{"class":63},"sequenceDiagram\n",[57,140,141],{"class":59,"line":73},[57,142,143],{"class":63},"    User->>Server: Request\n",[57,145,146],{"class":59,"line":79},[57,147,148],{"class":63},"    Server->>Database: Query\n",[57,150,151],{"class":59,"line":85},[57,152,153],{"class":63},"    Database-->>Server: Result\n",[57,155,157],{"class":59,"line":156},6,[57,158,159],{"class":63},"    Server-->>User: Response\n",[57,161,163],{"class":59,"line":162},7,[57,164,88],{"class":63},[15,166,91],{},[48,168,170],{"className":94,"code":169,"language":21,"meta":53,"style":53},"sequenceDiagram\n    User->>Server: Request\n    Server->>Database: Query\n    Database-->>Server: Result\n    Server-->>User: Response\n",[19,171,172,176,180,184,188],{"__ignoreMap":53},[57,173,174],{"class":59,"line":60},[57,175,138],{},[57,177,178],{"class":59,"line":67},[57,179,143],{},[57,181,182],{"class":59,"line":73},[57,183,148],{},[57,185,186],{"class":59,"line":79},[57,187,153],{},[57,189,190],{"class":59,"line":85},[57,191,159],{},[37,193],{},[40,195,197],{"id":196},"interactive-controls","Interactive Controls",[15,199,200],{},"Mermaid diagrams can be interacted with directly.",[202,203,204,208,211,223],"ul",{},[205,206,207],"li",{},"Scroll to zoom in or out.",[205,209,210],{},"Drag to move the diagram.",[205,212,213,214,218,219,222],{},"Use the ",[215,216,217],"strong",{},"+"," and ",[215,220,221],{},"−"," buttons to change the zoom level.",[205,224,213,225,228],{},[215,226,227],{},"reset"," button to reset the view.",[15,230,231],{},"This is especially useful for larger diagrams that do not fit completely inside the viewport.",[37,233],{},[40,235,237],{"id":236},"supported-diagrams","Supported Diagrams",[15,239,240],{},"The component supports Mermaid's diagram syntax, so all diagram types supported by the installed Mermaid version can be used.",[15,242,243],{},"Examples include:",[202,245,246,249,252,255,258,261,264,267,270],{},[205,247,248],{},"Flowcharts",[205,250,251],{},"Sequence diagrams",[205,253,254],{},"Class diagrams",[205,256,257],{},"State diagrams",[205,259,260],{},"Entity relationship diagrams",[205,262,263],{},"Git graphs",[205,265,266],{},"Timelines",[205,268,269],{},"User journeys",[205,271,272],{},"And more",[274,275],"see-also",{":items":276},"[{\"title\":\"Mermaid documentation\",\"to\":\"https:\u002F\u002Fmermaid.js.org\u002F\",\"description\":\"Learn more about Mermaid and its syntax.\"}]",[37,278],{},[40,280,282],{"id":281},"syntax","Syntax",[15,284,285],{},"The general syntax is:",[48,287,289],{"className":50,"code":288,"language":52,"meta":53,"style":53},"```mermaid\n\u003Cmermaid diagram>\n```\n",[19,290,291,295,300],{"__ignoreMap":53},[57,292,293],{"class":59,"line":60},[57,294,64],{"class":63},[57,296,297],{"class":59,"line":67},[57,298,299],{"class":63},"\u003Cmermaid diagram>\n",[57,301,302],{"class":59,"line":73},[57,303,88],{"class":63},[305,306,307],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":60,"depth":67,"links":309},[310,311,312,313,314],{"id":42,"depth":67,"text":43},{"id":114,"depth":67,"text":115},{"id":196,"depth":67,"text":197},{"id":236,"depth":67,"text":237},{"id":281,"depth":67,"text":282},null,"A diagramming and charting tool that allows you to create various types of diagrams using a simple and intuitive syntax.",{},{"title":5,"order":60},"\u002Fdiagrams\u002Fmermaid",{"title":5,"description":316},"4.diagrams\u002Fmermaid","pyz0913kFRmelvPyFF4cn22tf8bxq0Zn3-ETmOlx_8U",[324,354,384,472,482],{"title":325,"items":326,"path":339,"stem":340,"children":341},"Getting Started",[327,330,333,336],{"title":328,"path":329},"Welcome","\u002F",{"title":331,"path":332},"Installation","\u002Finstallation",{"title":334,"path":335},"Project Structure","\u002Fproject-structure",{"title":337,"path":338},"Creating Your First Wiki","\u002Fcreating-your-first-wiki","\u002Fgetting-started","1.getting-started",[342,345,348,351],{"title":343,"path":339,"stem":344,"order":60},"Introduction","1.getting-started\u002Findex",{"title":337,"path":346,"stem":347,"order":79},"\u002Fgetting-started\u002Ffirst-wiki","1.getting-started\u002Ffirst-wiki",{"title":331,"path":349,"stem":350,"order":67},"\u002Fgetting-started\u002Finstallation","1.getting-started\u002Finstallation",{"title":334,"path":352,"stem":353,"order":73},"\u002Fgetting-started\u002Fproject-structure","1.getting-started\u002Fproject-structure",{"title":355,"path":356,"stem":357,"children":358,"page":383},"Documentation","\u002Fdocumentation","2.documentation",[359,363,367,371,375,379],{"title":360,"path":361,"stem":362,"order":67},"Code Blocks","\u002Fdocumentation\u002Fcode-blocks","2.documentation\u002Fcode-blocks",{"title":364,"path":365,"stem":366,"order":79},"Field Tables","\u002Fdocumentation\u002Ffield-tables","2.documentation\u002Ffield-tables",{"title":368,"path":369,"stem":370,"order":85},"Images","\u002Fdocumentation\u002Fimages","2.documentation\u002Fimages",{"title":372,"path":373,"stem":374,"order":60},"Markdown Syntax","\u002Fdocumentation\u002Fmarkdown-syntax","2.documentation\u002Fmarkdown-syntax",{"title":376,"path":377,"stem":378,"order":73},"Tables","\u002Fdocumentation\u002Ftables","2.documentation\u002Ftables",{"title":380,"path":381,"stem":382,"order":85},"Videos","\u002Fdocumentation\u002Fvideos","2.documentation\u002Fvideos",false,{"title":385,"path":386,"stem":387,"children":388,"page":383},"Components","\u002Fcomponents","3.components",[389,393,397,402,407,412,417,421,425,430,435,439,444,449,454,459,464,468],{"title":390,"path":391,"stem":392,"order":156},"Accordions","\u002Fcomponents\u002Faccordion","3.components\u002Faccordion",{"title":394,"path":395,"stem":396,"order":85},"Badges","\u002Fcomponents\u002Fbadge","3.components\u002Fbadge",{"title":398,"path":399,"stem":400,"order":401},"Category List","\u002Fcomponents\u002Fcategory-list","3.components\u002Fcategory-list",15,{"title":403,"path":404,"stem":405,"order":406},"Collapsible","\u002Fcomponents\u002Fcollapsible","3.components\u002Fcollapsible",8,{"title":408,"path":409,"stem":410,"order":411},"Diff","\u002Fcomponents\u002Fdiff","3.components\u002Fdiff",9,{"title":413,"path":414,"stem":415,"order":416},"Hatnote","\u002Fcomponents\u002Fhatnote","3.components\u002Fhatnote",12,{"title":418,"path":419,"stem":420,"order":67},"Highlight","\u002Fcomponents\u002Fhighlight","3.components\u002Fhighlight",{"title":422,"path":423,"stem":424,"order":73},"Info Boxes","\u002Fcomponents\u002Finfo-boxes","3.components\u002Finfo-boxes",{"title":426,"path":427,"stem":428,"order":429},"Kbd (Keyboard)","\u002Fcomponents\u002Fkbd","3.components\u002Fkbd",11,{"title":431,"path":432,"stem":433,"order":434},"Link Card","\u002Fcomponents\u002Flink-card","3.components\u002Flink-card",17,{"title":436,"path":437,"stem":438,"order":60},"Overview","\u002Fcomponents\u002Foverview","3.components\u002Foverview",{"title":440,"path":441,"stem":442,"order":443},"Pull Quote","\u002Fcomponents\u002Fpull-quote","3.components\u002Fpull-quote",13,{"title":445,"path":446,"stem":447,"order":448},"Reference List","\u002Fcomponents\u002Freference-list","3.components\u002Freference-list",14,{"title":450,"path":451,"stem":452,"order":453},"References","\u002Fcomponents\u002Freferences","3.components\u002Freferences",18,{"title":455,"path":456,"stem":457,"order":458},"See Also","\u002Fcomponents\u002Fsee-also","3.components\u002Fsee-also",16,{"title":460,"path":461,"stem":462,"order":463},"Steps","\u002Fcomponents\u002Fsteps","3.components\u002Fsteps",10,{"title":465,"path":466,"stem":467,"order":79},"Tabs","\u002Fcomponents\u002Ftabs","3.components\u002Ftabs",{"title":469,"path":470,"stem":471,"order":162},"Timeline","\u002Fcomponents\u002Ftimeline","3.components\u002Ftimeline",{"title":473,"path":474,"stem":475,"children":476,"page":383},"Diagrams","\u002Fdiagrams","4.diagrams",[477,478],{"title":5,"path":319,"stem":321,"order":60},{"title":479,"path":480,"stem":481,"order":67},"PlantUML","\u002Fdiagrams\u002Fplantuml","4.diagrams\u002Fplantuml",{"title":483,"path":484,"stem":485,"children":486,"page":383},"Playground","\u002Fplayground","playground",[487],{"title":488,"path":489,"stem":490,"hide":491},"Markdown Test","\u002Fplayground\u002Fmarkdown-test","playground\u002Fmarkdown-test",true,[493,508,522,560,566],{"title":325,"items":494,"path":339,"stem":340,"children":499},[495,496,497,498],{"title":328,"path":329},{"title":331,"path":332},{"title":334,"path":335},{"title":337,"path":338},[500,502,504,506],{"title":343,"path":339,"stem":344,"order":60,"children":501},[],{"title":331,"path":349,"stem":350,"order":67,"children":503},[],{"title":334,"path":352,"stem":353,"order":73,"children":505},[],{"title":337,"path":346,"stem":347,"order":79,"children":507},[],{"title":355,"path":356,"stem":357,"children":509,"page":383},[510,512,514,516,518,520],{"title":372,"path":373,"stem":374,"order":60,"children":511},[],{"title":360,"path":361,"stem":362,"order":67,"children":513},[],{"title":376,"path":377,"stem":378,"order":73,"children":515},[],{"title":364,"path":365,"stem":366,"order":79,"children":517},[],{"title":368,"path":369,"stem":370,"order":85,"children":519},[],{"title":380,"path":381,"stem":382,"order":85,"children":521},[],{"title":385,"path":386,"stem":387,"children":523,"page":383},[524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558],{"title":436,"path":437,"stem":438,"order":60,"children":525},[],{"title":418,"path":419,"stem":420,"order":67,"children":527},[],{"title":422,"path":423,"stem":424,"order":73,"children":529},[],{"title":465,"path":466,"stem":467,"order":79,"children":531},[],{"title":394,"path":395,"stem":396,"order":85,"children":533},[],{"title":390,"path":391,"stem":392,"order":156,"children":535},[],{"title":469,"path":470,"stem":471,"order":162,"children":537},[],{"title":403,"path":404,"stem":405,"order":406,"children":539},[],{"title":408,"path":409,"stem":410,"order":411,"children":541},[],{"title":460,"path":461,"stem":462,"order":463,"children":543},[],{"title":426,"path":427,"stem":428,"order":429,"children":545},[],{"title":413,"path":414,"stem":415,"order":416,"children":547},[],{"title":440,"path":441,"stem":442,"order":443,"children":549},[],{"title":445,"path":446,"stem":447,"order":448,"children":551},[],{"title":398,"path":399,"stem":400,"order":401,"children":553},[],{"title":455,"path":456,"stem":457,"order":458,"children":555},[],{"title":431,"path":432,"stem":433,"order":434,"children":557},[],{"title":450,"path":451,"stem":452,"order":453,"children":559},[],{"title":473,"path":474,"stem":475,"children":561,"page":383},[562,564],{"title":5,"path":319,"stem":321,"order":60,"children":563},[],{"title":479,"path":480,"stem":481,"order":67,"children":565},[],{"title":483,"path":484,"stem":485,"children":567,"page":383},[],1795408345064]