🧩

Mermaid Demo

This staging page tests native Mermaid diagrams, source controls, responsive layout and independent error handling. Ordinary code remains a code block.

â„šī¸ Each diagram is authored in a native Notion Code block with its language set to Mermaid. Use the diagram source control to inspect the original definition.

Mermaid Diagrams

Flowchart

Flowchart: native source to website

Sequence Diagram

Sequence: source, rendering and display

Class Diagram

Class relationships in the visual model

State Diagram

State diagram: publication stages

Code and Error Controls

Ordinary Code

This C# example must remain literal code. Its angle brackets and ampersand must not become HTML elements.

C#
var markup = "<span>&value</span>";
Console.WriteLine(markup);

Expected Syntax Error

The following definition is intentionally invalid. The page should show a local failure message and retain its source without preventing the remaining diagrams from rendering.

Intentional invalid Mermaid definition

Valid Diagram After the Error

A valid diagram after an invalid block