Merlive

What Merlive draws of Mermaid

Written by npm run coverage. Do not edit it by hand: change the code or the corpus and run it again.

The syntax pages of mermaid-js/mermaid at 6374e52 (2026-11-23): one row for every kind of diagram it documents and every feature its flowchart, state diagram, class diagram, entity diagram and sequence diagram pages set out. The samples are our own.

In short

  • Flowcharts: of 70 features, 49 are drawn as written, 20 are drawn less something Merlive leaves out on purpose or does not have yet, 1 are only partly read, and 0 are refused.
  • State diagrams: of 27 features, 19 are drawn as written, 8 are drawn less something, 0 are only partly read, and 0 are refused.
  • Class diagrams: of 36 features, 28 are drawn as written, 8 are drawn less something, 0 are only partly read, 0 are refused.
  • Entity diagrams: of 48 features, 38 are drawn as written, 10 are drawn less something, 0 are only partly read, 0 are refused.
  • Requirement diagrams: of 46 features, 37 are drawn as written, 9 are drawn less something, 0 are only partly read, 0 are refused.
  • C4 diagrams: of 41 features, 25 are drawn as written, 16 are drawn less something, 0 are only partly read, 0 are refused.
  • Architecture diagrams: of 28 features, 17 are drawn as written, 11 are drawn less something, 0 are only partly read, 0 are refused.
  • Block diagrams: of 36 features, 31 are drawn as written, 5 are drawn less something, 0 are only partly read, 0 are refused.
  • Mindmaps: of 38 features, 33 are drawn as written, 5 are drawn less something, 0 are only partly read, 0 are refused.
  • Kanban boards: of 25 features, 17 are drawn as written, 8 are drawn less something, 0 are only partly read, 0 are refused.
  • Timelines: of 29 features, 29 are drawn as written, 0 are drawn less something, 0 are only partly read, 0 are refused.
  • Packets: of 22 features, 22 are drawn as written, 0 are drawn less something, 0 are only partly read, 0 are refused.
  • Sequence diagrams: of 42 features, 40 are drawn as written, 2 are drawn less something, 0 are only partly read, and 0 are refused.
  • Every kind of diagram: of 32, 12 drawn (those with their own lists above), and 20 left as Mermaid and named.

Flowcharts, feature by feature

A sample is drawn when every box, link, group and word the corpus says it has is read, nothing is said about what could not be read, and every rule passes. Drawn, less something is the same, with one thing known to be missing, named beside it. Partly read and refused are what there is to fix.

FeatureResultWhat is missingSamplePicture
A flowchart, declared with "flowchart"Drawnsourcepicture
A flowchart, declared with "graph"Drawnsourcepicture
Direction TB: top to bottomDrawnsourcepicture
Direction TD: top downDrawnsourcepicture
Direction LR: left to rightDrawnsourcepicture
Direction BT: bottom to topDrawnsourcepicture
Direction RL: right to leftDrawnsourcepicture
A title and settings in front matterDrawn, less somethingMermaid's own settings are read past: the look is the design'ssourcepicture
Settings in an init directiveDrawn, less somethingMermaid's own settings are read past: the look is the design'ssourcepicture
Comments on lines of their ownDrawnsourcepicture
A title and a description for readers who cannot see itDrawnsourcepicture
A description written over several linesDrawnsourcepicture
Statements ended with semicolons, and no spacesDrawnsourcepicture
Boxes named by their id aloneDrawnsourcepicture
A box with wordsDrawnsourcepicture
Words in other alphabetsDrawnsourcepicture
Brackets and signs inside quotesDrawnsourcepicture
Characters written as entity codesDrawnsourcepicture
A line break in a labelDrawnsourcepicture
Markdown strings: bold, italic and a real line breakDrawnsourcepicture
A Font Awesome icon in a labelDrawn, less somethingThe icons are Merlive's own drawings of a truck and a tick, not Font Awesome'ssourcepicture
Shape: Round edgesDrawn, less somethingIts corners are the design's, the same as every boxsourcepicture
Shape: StadiumDrawnsourcepicture
Shape: SubroutineDrawnsourcepicture
Shape: Cylinder, a databaseDrawnsourcepicture
Shape: CircleDrawn, less somethingDrawn as a pill: a circle the height of a box would hold three letterssourcepicture
Shape: Asymmetric, a flagDrawnsourcepicture
Shape: Rhombus, a decisionDrawnsourcepicture
Shape: HexagonDrawnsourcepicture
Shape: ParallelogramDrawnsourcepicture
Shape: Parallelogram, leaning backDrawnsourcepicture
Shape: TrapezoidDrawnsourcepicture
Shape: Trapezoid, upside downDrawnsourcepicture
Shape: Double circleDrawnsourcepicture
Shapes written as @{ shape: … }, with a labelPartly readits shapes are read as box, diamond, cylinder, document, pillsourcepicture
Every one of the 53 newer shapesDrawn, less somethingThose Merlive has a drawing for are drawn as themselves; the rest are boxessourcepicture
A box that is an iconDrawn, less somethingThe icon is Merlive's own drawing of a user, beside the label and not above itsourcepicture
A box that is an imageDrawn, less somethingThe image is left out (a page of Merlive fetches nothing); its label is keptsourcepicture
Boxes given a row and a columnDrawn, less somethingThe rows and columns are read past: placement is Merlive'ssourcepicture
A link with an arrowheadDrawnsourcepicture
A link with no arrowheadDrawnsourcepicture
Words on a link, between barsDrawnsourcepicture
Words on a link, written into itDrawnsourcepicture
A dotted link, with and without wordsDrawnsourcepicture
A thick link, with and without wordsDrawnsourcepicture
An invisible link, used to nudge placementDrawn, less somethingIts boxes are read and the link is left out: it is only there to nudge Mermaid's placement, and placement is Merlive'ssourcepicture
Links chained in one lineDrawnsourcepicture
One line linking to several boxes with &Drawnsourcepicture
Several boxes to several boxes with &Drawnsourcepicture
A link ending in a circle or a crossDrawnsourcepicture
Arrows at both endsDrawnsourcepicture
Links drawn longer, to push a box further onDrawn, less somethingThe extra length is read past: placement is Merlive'ssourcepicture
A link from a box to itselfDrawnsourcepicture
A link given an idDrawnsourcepicture
A link set to animateDrawn, less somethingMermaid's animation is read past: movement is the design's, and starts when a reader askssourcepicture
Links played one step after anotherDrawn, less somethingThe step numbers are read past; a walkthrough is written with "%% step"sourcepicture
A link given a curve of its ownDrawn, less somethingThe curve is read past: lines turn at right angles by rulesourcepicture
A group named by its titleDrawnsourcepicture
A group with an id and a titleDrawnsourcepicture
Links to a group and between groupsDrawnsourcepicture
A group with a direction of its ownDrawnsourcepicture
A group inside a groupDrawnsourcepicture
A group shown collapsedDrawn, less somethingDrawn open: a picture cannot be opened and closedsourcepicture
A box styled on its ownDrawn, less somethingIts outline is broken, heavy and red as written, in the design's own red; its fill is the design'ssourcepicture
Links styled by their numberDrawn, less somethingThe link is heavy and red as written, in the design's own red; a default for every link is read pastsourcepicture
A class made and given to boxesDrawnsourcepicture
A class given with :::Drawnsourcepicture
A default class for every boxDrawn, less somethingThe default class is read past: the look is the design'ssourcepicture
A box that calls a function when clickedDrawn, less somethingThe click is left out: a page of Merlive runs no code of yourssourcepicture
A box that opens a link when clickedDrawn, less somethingThe link is left outsourcepicture

State diagrams, feature by feature

A state diagram is boxes and links, so it is read into what a flowchart is read into and placed by the same rules. Held to the same measure as the flowcharts above.

FeatureResultWhat is missingSamplePicture
A state diagram, declared with "stateDiagram-v2"Drawnsourcepicture
A state diagram, declared with "stateDiagram"Drawnsourcepicture
States named by their id aloneDrawnsourcepicture
A state with words, written "state words as id"Drawnsourcepicture
A state with words, written "id : words"Drawnsourcepicture
Words given a line at a timeDrawnsourcepicture
A name with spaces, by way of an idDrawnsourcepicture
TransitionsDrawnsourcepicture
Transitions with wordsDrawnsourcepicture
A transition from a state to itselfDrawnsourcepicture
Where it starts and where it endsDrawn, less somethingWhere it starts and where it ends are pills that say so, not dotssourcepicture
A composite stateDrawn, less somethingA transition to a composite state is drawn to where it starts inside, and one from it from where it endssourcepicture
A composite state named on a line of its ownDrawn, less somethingA transition to a composite state is drawn to where it starts inside, and one from it from where it endssourcepicture
A composite state inside anotherDrawnsourcepicture
Transitions between composite statesDrawn, less somethingA transition to a composite state is drawn to where it starts inside, and one from it from where it endssourcepicture
A choiceDrawn, less somethingA choice is a decision the size of every box, with its name in it; Mermaid draws a small diamond with nonesourcepicture
A fork and a joinDrawnsourcepicture
A note on one line, on either sideDrawn, less somethingA note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry itsourcepicture
A note written over several linesDrawn, less somethingA note is what a reader sees on picking its box in the page, and is printed with the page; it is not drawn beside the box, and a still picture does not carry itsourcepicture
Concurrency: regions of a composite state parted by --Drawnsourcepicture
The direction of the diagramDrawnsourcepicture
A composite state with a direction of its ownDrawnsourcepicture
Comments, on a line of their own and at the end of oneDrawnsourcepicture
A class made with classDef and given with classDrawnsourcepicture
A class given with :::Drawnsourcepicture
A title and a description for readers who cannot see itDrawnsourcepicture
A title and settings in front matterDrawn, less somethingMermaid's own settings are read past: the look is the design'ssourcepicture

Class diagrams, feature by feature

A class is a box that lists its attributes and its methods under its name. Held to the same measure, and to the rows each box lists and what each link ends in.

FeatureResultWhat is missingSamplePicture
A class, declared with "class"Drawnsourcepicture
Two classes made by tying one to the otherDrawnsourcepicture
A class diagram, declared with "classDiagram-v2"Drawnsourcepicture
A title in front matterDrawnsourcepicture
A class with a labelDrawnsourcepicture
A class named between backticksDrawnsourcepicture
Members given one at a time, after a colonDrawnsourcepicture
Members given together, between bracketsDrawnsourcepicture
What a method gives backDrawnsourcepicture
Generic types, in a class, a member and what a method gives backDrawnsourcepicture
Who may see a member: public, private, protected, packageDrawnsourcepicture
Members marked abstract or staticDrawn, less somethingAbstract and static are said in words at the end of the row, where Mermaid slants or underlines itsourcepicture
The eight relationsDrawnsourcepicture
The eight relations written the other way round, each with wordsDrawn, less something"Is a" is drawn from the parent down to the child, whichever way it was writtensourcepicture
Words on a relationDrawnsourcepicture
A relation that says something at both endsDrawnsourcepicture
A lollipop interfaceDrawn, less somethingA lollipop is drawn as a box of its own, named for the interface and marked «interface», with the circle on its linesourcepicture
How many, at either end of a relationDrawnsourcepicture
A namespaceDrawnsourcepicture
A namespace with a labelDrawnsourcepicture
A namespace written inside anotherDrawnsourcepicture
Namespaces inside one another, spelt with dotsDrawnsourcepicture
An annotation, on the line that declares the classDrawnsourcepicture
An annotation, on a line of its ownDrawnsourcepicture
An annotation, inside the classDrawnsourcepicture
A comment on a line of its ownDrawnsourcepicture
A direction for the whole diagramDrawn, less somethingDrawn top to bottom: boxes of different heights are only placed that way yetsourcepicture
A class that opens a link or calls a function when clickedDrawn, less somethingThe clicks are left out: a page of Merlive opens no links and runs no code of yourssourcepicture
A note for a classDrawnsourcepicture
A note for no class in particularDrawnsourcepicture
A class styled on its ownDrawn, less somethingEach outline is heavy or broken as written, in the design's own nearest colour; the fill is the design'ssourcepicture
A style class made with classDef and given with cssClassDrawnsourcepicture
A style class given with :::Drawnsourcepicture
A default style class for every classDrawn, less somethingThe default class is read past: the look is the design'ssourcepicture
A style class kept in the page's own stylesheetDrawn, less somethingA page's own stylesheet cannot be read from here: the class is of that kind, in the design's plain looksourcepicture
A whole diagram: classes, what they list, what they inherit, and a noteDrawnsourcepicture

Entity diagrams, feature by feature

An entity is a box that lists its attributes under its name, and a relationship ends in how many. Held to the same measure, and to the rows each box lists and what each link ends in.

FeatureResultWhat is missingSamplePicture
An entity diagram: entities, and the relationships between themDrawnsourcepicture
An entity with no relationshipsDrawnsourcepicture
Attributes: a type and a name eachDrawnsourcepicture
An entity declared twice, its attributes joinedDrawnsourcepicture
An entity declared with no attributes between its bracesDrawnsourcepicture
A name with a hyphen in itDrawnsourcepicture
A name with spaces, in quotesDrawnsourcepicture
Names, words and attributes in other alphabetsDrawnsourcepicture
A name written as MarkdownDrawn, less somethingBold and italic are drawn as plain wordssourcepicture
An alias shown in place of the nameDrawnsourcepicture
Zero or one, at either endDrawnsourcepicture
Exactly one, at either endDrawnsourcepicture
Zero or more, at either endDrawnsourcepicture
One or more, at either endDrawnsourcepicture
A mark written the other way round for its endDrawnsourcepicture
How many, written in wordsDrawnsourcepicture
How many, in the short forms: 1, 1+, 0+, many(0), many(1)Drawnsourcepicture
A relationship that identifies: a solid lineDrawnsourcepicture
A relationship that does not identify: a dotted lineDrawnsourcepicture
Identifying or not, written in wordsDrawnsourcepicture
A relationship's words, in quotesDrawnsourcepicture
A relationship with empty wordsDrawnsourcepicture
A relationship written with no spacesDrawnsourcepicture
A relationship from an entity to itselfDrawnsourcepicture
Keys: primary, foreign and uniqueDrawnsourcepicture
Several keys on one attributeDrawnsourcepicture
A star before a name, for a primary keyDrawnsourcepicture
A comment on an attributeDrawn, less somethingA comment is not in its row: it is in the note on its entity, which a reader sees on picking the boxsourcepicture
Types with a length, a list, and two numbersDrawnsourcepicture
A type that may be missingDrawnsourcepicture
Direction: top to bottomDrawnsourcepicture
Direction: left to rightDrawn, less somethingDrawn top to bottom: boxes of different heights are only placed that way yetsourcepicture
A group, named by one wordDrawnsourcepicture
A group named by words in quotesDrawnsourcepicture
A group with an id and a titleDrawnsourcepicture
A group inside a groupDrawnsourcepicture
Relationships to and from groupsDrawn, less somethingA relationship with a group is drawn to where the group starts, or from where it endssourcepicture
A group with a direction of its ownDrawn, less somethingThe group's own direction is read past; it runs the way the rest doessourcepicture
An entity styled on its ownDrawn, less somethingIts outline is broken, heavy and red as written, in the design's own red; its fill is the design'ssourcepicture
Several entities styled in one lineDrawn, less somethingTheir outlines are heavy and blue as written, in the design's own bluesourcepicture
A class made and given to entitiesDrawnsourcepicture
Several classes given at onceDrawn, less somethingA box is of one kind: of several classes, the first is the one it issourcepicture
A class given with :::Drawnsourcepicture
A class given with ::: in a relationshipDrawnsourcepicture
A default class for every entityDrawn, less somethingThe default class is read past: the look is the design'ssourcepicture
A title and settings in front matterDrawn, less somethingMermaid's own settings are read past: the look and the placement are Merlive'ssourcepicture
A title and a description for readers who cannot see itDrawnsourcepicture
Comments, on lines of their own, between statements and between attributesDrawnsourcepicture

Requirement diagrams, feature by feature

A requirement is a box that says what kind it is, a sentence of what it asks, and its id, risk and how it is verified. Held to the same measure.

FeatureResultWhat is missingSamplePicture
A requirement diagram: a requirement, an element, and how one bears on the otherDrawnsourcepicture
The six kinds of requirementDrawnsourcepicture
What is said of a requirement: its id, its text, its risk and how it is verifiedDrawnsourcepicture
What is said of a requirement, written in another orderDrawnsourcepicture
Requirements of which only some things are saidDrawnsourcepicture
The three risks: low, medium and highDrawnsourcepicture
The four ways to verify: analysis, demonstration, inspection and testDrawnsourcepicture
Mermaid's own words written with capitalsDrawnsourcepicture
A requirement and an element of which nothing is saidDrawnsourcepicture
An id with dots, and one of lettersDrawnsourcepicture
An id in quotesDrawnsourcepicture
A text in quotes, with a colon and a comma in itDrawnsourcepicture
A text written as MarkdownDrawn, less somethingBold and italic in a requirement's text are drawn as plain wordssourcepicture
An element: its type and the document it points toDrawnsourcepicture
An element's type and document in quotesDrawnsourcepicture
Elements with a type or a document, not bothDrawnsourcepicture
The seven relationshipsDrawnsourcepicture
Relationships written from their other endDrawnsourcepicture
A requirement that contains othersDrawn, less somethingThe crossed ring Mermaid draws at the requirement that contains is drawn as a filled circlesourcepicture
Relationships written with no spacesDrawnsourcepicture
A relationship's word written with a capitalDrawnsourcepicture
A relationship from a requirement to itselfDrawnsourcepicture
A relationship written before what it joins is declaredDrawnsourcepicture
Names in quotes, of several wordsDrawnsourcepicture
Names of several words, without quotesDrawnsourcepicture
A name and a text in another alphabetDrawnsourcepicture
Names with a dot, and one that starts with a digitDrawnsourcepicture
A name written as MarkdownDrawnsourcepicture
A requirement declared twiceDrawnsourcepicture
Direction: top to bottomDrawnsourcepicture
Direction: left to rightDrawn, less somethingDrawn top to bottom: boxes of different heights are only placed that way yetsourcepicture
Direction: bottom to topDrawn, less somethingDrawn top to bottom: boxes of different heights are only placed that way yetsourcepicture
A class made with classDef and given to several with classDrawnsourcepicture
A class given with ::: where a thing is declaredDrawnsourcepicture
A class given with ::: to a name aloneDrawnsourcepicture
Several classes given at onceDrawn, less somethingA box is of one kind: of several classes, the first is the one it issourcepicture
A default class for every requirementDrawn, less somethingThe default class is read past: the look is the design'ssourcepicture
A requirement styled on its ownDrawn, less somethingIts outline is heavy and red as written, in the design's own red; its fill is the design'ssourcepicture
Several styled in one line, one named in quotesDrawn, less somethingTheir outlines are broken and red as written, in the design's own redsourcepicture
A title in front matterDrawnsourcepicture
A title and a description for readers who cannot see itDrawnsourcepicture
A description over several linesDrawnsourcepicture
Comments: on lines of their own, and after the { that opens a requirementDrawnsourcepicture
A directive for Mermaid's own settingsDrawn, less somethingMermaid's own settings are read past: the look is the design'ssourcepicture
Blank lines between and inside declarationsDrawnsourcepicture
A whole diagram: requirements of three kinds, two elements, and how they bear on each otherDrawnsourcepicture

C4 diagrams, feature by feature

A person, a system, a container or a component is a box that says what it is and a sentence of what it does; a boundary is a group. Held to the same measure.

FeatureResultWhat is missingSamplePicture
A system in its context: a person, a system and one that is someone else'sDrawnsourcepicture
People: one of the firm and one outside itDrawnsourcepicture
Systems: a system, one that is a database and one that is a queueDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
Systems that are someone else's, a database and a queue among themDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
Containers, with what each is made in and what it doesDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
Containers that are someone else'sDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
Components, with what each is made in and what it doesDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
Components that are someone else'sDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture
A boundary round some of the elementsDrawnsourcepicture
A boundary that says what kind of boundary it isDrawnsourcepicture
An enterprise's boundary with a system's boundary inside itDrawn, less somethingMermaid writes [ENTERPRISE] and [SYSTEM] under the names of these boundaries; a type that was not written is not addedsourcepicture
A container's boundaryDrawn, less somethingMermaid writes [CONTAINER] under the name of this boundary; a type that was not written is not addedsourcepicture
Boundaries three deepDrawn, less somethingMermaid writes [ENTERPRISE], [SYSTEM] and [CONTAINER] under the names of these boundaries; a type that was not written is not addedsourcepicture
A boundary whose { is on the line below itDrawnsourcepicture
A deployment: nodes inside a node, and what runs on eachDrawnsourcepicture
Nodes written as Node, Node_L and Node_RDrawnsourcepicture
A node that is described as well as namedDrawn, less somethingWhat a node is described as is not drawn: a group has a name and nothing moresourcepicture
A relationDrawnsourcepicture
A relation that says how it is made, and one that is describedDrawnsourcepicture
A relation that runs both waysDrawnsourcepicture
A relation that runs back, from the second to the firstDrawnsourcepicture
Relations that say which way Mermaid should draw themDrawn, less somethingUp, down, left and right are read past: where a box goes is Merlive's to saysourcepicture
A dynamic diagram: what happens, in orderDrawnsourcepicture
Relations given an indexDrawnsourcepicture
Arguments given by nameDrawnsourcepicture
Tags, links and spritesDrawn, less somethingA link is not followed: a page runs nothing of an author's. Tags and sprites are read past, as Mermaid reads past themsourcepicture
Arguments left emptyDrawnsourcepicture
An element given colours of its ownDrawn, less somethingIts fill is the colour written, as the nearest colour of the design; the colours of its words and its edge are the design'ssourcepicture
An element given colours by nameDrawn, less somethingA colour given by name is not read: only one written as #rrggbb issourcepicture
A relation given colours of its own, and its words movedDrawn, less somethingA link's colour is the design's; where its words sit is Merlive's to placesourcepicture
A relation whose words are movedDrawnsourcepicture
How many elements and boundaries Mermaid should put in a rowDrawnsourcepicture
A titleDrawnsourcepicture
Front matter with a titleDrawnsourcepicture
accTitle and accDescrDrawnsourcepicture
Comments on lines of their ownDrawnsourcepicture
Commas, brackets and %% inside quotesDrawnsourcepicture
A line break in a label and in a descriptionDrawnsourcepicture
Words in quotes that run on down the linesDrawnsourcepicture
An element declared twiceDrawnsourcepicture
A whole diagram: people, a boundary of containers, a database, a queue and a system outsideDrawn, less somethingA queue is drawn as a pill: there is no cylinder on its side yetsourcepicture

Architecture diagrams, feature by feature

A service is a box with its icon, a group is a group, and the sides an edge leaves by say which way the diagram runs. Held to the same measure.

FeatureResultWhat is missingSamplePicture
Services, each with an icon and a title, and an edge between themDrawnsourcepicture
The icons Mermaid is born with: cloud, database, disk, internet, serverDrawn, less somethingA disk is drawn with the database's drawing: Merlive has no drawing of a disk of its own yetsourcepicture
An icon from a pack by its name (logos:aws-lambda)Drawn, less somethingAn icon from a pack is somebody's mark, which Merlive neither fetches nor draws: the words are kept, and it is saidsourcepicture
A service with no iconDrawnsourcepicture
A service with no titleDrawn, less somethingA box says something: a service with no title takes its id for its words, where Mermaid draws the icon alonesourcepicture
A title in quotes, with what a bare title may not holdDrawnsourcepicture
Ids with a hyphen and an underscoreDrawnsourcepicture
A group, the services in it, and one outside itDrawn, less somethingA group's icon is not drawn: a frame is named by its titlesourcepicture
A group inside a groupDrawn, less somethingA group's icon is not drawn: a frame is named by its titlesourcepicture
A group declared after the services said to be in itDrawn, less somethingA group's icon is not drawn: a frame is named by its titlesourcepicture
A group with no iconDrawnsourcepicture
Edges that leave by every side: right to left, left to right, bottom to topDrawnsourcepicture
An edge that leaves by the top and meets a sideDrawnsourcepicture
Arrowheads: into the second, into the first, into bothDrawnsourcepicture
Words on an edgeDrawnsourcepicture
Words on an edge with arrowheadsDrawnsourcepicture
Edges written with no spacesDrawnsourcepicture
An edge out of a group and into a group ({group})Drawn, less somethingA link out of a group is drawn from the service its author named, not from the frame: a line ends at a box. A group's icon is not drawn: a frame is named by its titlesourcepicture
An edge from a service to itselfDrawnsourcepicture
A junction: where edges meet and partDrawn, less somethingA junction is drawn as a round box with no words, the size of every other box, not as the point where lines meetsourcepicture
A junction in a groupDrawn, less somethingA junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet. A group's icon is not drawn: a frame is named by its titlesourcepicture
Services lined up in a column (align)Drawn, less somethingLining services up in a row or a column is read past: where a box goes is by rule. A group's icon is not drawn: a frame is named by its titlesourcepicture
A title written in the diagramDrawnsourcepicture
Front matter: a title, and Mermaid's own settingsDrawnsourcepicture
accTitle and accDescr, on a line and over severalDrawnsourcepicture
Comments, on a line of their own and after a lineDrawnsourcepicture
A diagram whose edges run top to bottomDrawnsourcepicture
A whole diagram: groups in groups, services, a junction, edges with arrowheads and wordsDrawn, less somethingA junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet. A link out of a group is drawn from the service its author named. A group's icon is not drawn: a frame is named by its titlesourcepicture

Block diagrams, feature by feature

Blocks joined by links are read as a flowchart is and placed by rule. One whose meaning is in its grid is placed on that grid, each block in the cell its author gave it.

FeatureResultWhat is missingSamplePicture
A block diagram that is a flow: blocks in a row, each joined to the nextDrawnsourcepicture
The older name of the kind: block-betaDrawnsourcepicture
columns 1: blocks one under the other, joinedDrawnsourcepicture
No columns given: one rowDrawnsourcepicture
columns auto: one row, each column as wide as it needsDrawnsourcepicture
Blocks that wrap to a second row, joined in the order writtenDrawnsourcepicture
Blocks with no words: each is called by its idDrawnsourcepicture
Words broken with <br/>, and an entity codeDrawnsourcepicture
A link with no arrowheadDrawnsourcepicture
Words written into a linkDrawnsourcepicture
Links thick and dotted, ending in a circle, a cross, an arrow at both ends, and dotted with wordsDrawnsourcepicture
Blocks given their shape and words in the link that joins themDrawnsourcepicture
A link to a block not written anywhere else, which makes itDrawnsourcepicture
A space between two blocks, to make room for the link that joins them (how Mermaid says to draw a link)Drawnsourcepicture
A space between two blocks one under the other, for the link that joins themDrawnsourcepicture
space:3 between two joined blocks: more room for the same linkDrawnsourcepicture
Every shape of a block, joined in a chainDrawn, less somethingA block with round corners is a box, and a circle is a pill, as in a flowchartsourcepicture
A block that holds others: a groupDrawnsourcepicture
A block that holds others, with a name and columns of its ownDrawn, less somethingMerlive draws the name its author gave the block; Mermaid 11 draws nonesourcepicture
A block that holds others and has no idDrawnsourcepicture
Blocks that hold others, inside one that holds themDrawnsourcepicture
Links to and from a block that holds others: joined to what is inside itDrawnsourcepicture
A block styled on its own: a heavy outline, a broken oneDrawn, less somethingThe colour is drawn in the design's nearest coloursourcepicture
A class, and the blocks that are of itDrawn, less somethingThe colour is drawn in the design's nearest coloursourcepicture
Comments on lines of their ownDrawnsourcepicture
Front matter with a titleDrawnsourcepicture
A grid of blocks with no links: what it says is where each block isDrawnsourcepicture
Every shape of a block, laid out in a grid with no linksDrawnsourcepicture
One block on its ownDrawnsourcepicture
Blocks that span columns: a wide block over two narrower onesDrawnsourcepicture
A block that spans the grid under two others, a space between them and an empty rowDrawnsourcepicture
Spaces that put a block under the one it belongs toDrawnsourcepicture
Block arrows between cells: arrows drawn as blocks, placed by the gridDrawnsourcepicture
A block arrow pointing every way it canDrawn, less somethingAn arrow that points across and down is drawn pointing both ways across: Merlive draws an arrow along one linesourcepicture
Blocks that hold grids of their own, and span columns of the grid they are inDrawnsourcepicture
A grid with a block arrow, a block that holds others, a space and links (from Mermaid's own guide)Drawnsourcepicture

Mindmaps, feature by feature

A mindmap is a tree: each line a box under the nearest line above that is further left, grown from its root to the right. Held to the same measure.

FeatureResultWhat is missingSamplePicture
A mindmap: a root, and what is under it by how far in each line is writtenDrawnsourcepicture
A root with nothing under itDrawnsourcepicture
Five steps in from the rootDrawnsourcepicture
Lines written unevenly: each is under the nearest line above it that is further leftDrawnsourcepicture
Lines set in with tabsDrawnsourcepicture
A root written at the marginDrawnsourcepicture
Empty lines between the lines of a treeDrawnsourcepicture
The first word with a semicolon after itDrawnsourcepicture
A line of bare words: the shape Mermaid gives when none is writtenDrawnsourcepicture
A squareDrawnsourcepicture
A rounded squareDrawnsourcepicture
A circleDrawnsourcepicture
A hexagonDrawnsourcepicture
A bangDrawn, less somethingA bang is a box with a heavy outline, not a burstsourcepicture
A cloudDrawn, less somethingA cloud is a round-ended box with a dashed outline, not a cloudsourcepicture
A circle, a hexagon, a square and bare words in one treeDrawnsourcepicture
A square and a rounded square in one treeDrawn, less somethingA square and a rounded square are the same box: its corners are the design'ssourcepicture
An id apart from its wordsDrawnsourcepicture
An id of several wordsDrawnsourcepicture
A shape with no id before itDrawnsourcepicture
Bare words with a bracket in them: what is before it is the idDrawnsourcepicture
Words in quotes, with a colon and brackets in themDrawnsourcepicture
Two lines of the same words: two boxesDrawnsourcepicture
An icon, on the line under its boxDrawnsourcepicture
An icon Merlive has no drawing forDrawn, less somethingThe icon is left outsourcepicture
A class, on the line under its boxDrawn, less somethingA class has no colour of its own: Mermaid takes one from the page it is onsourcepicture
A class for the rootDrawnsourcepicture
A Markdown string: bold and italicDrawnsourcepicture
A Markdown string of several linesDrawnsourcepicture
Bold and italic with no Markdown string round themDrawnsourcepicture
A line broken with <br/>Drawnsourcepicture
Words long enough to be wrappedDrawnsourcepicture
Words in other scripts, and an emojiDrawnsourcepicture
A comment on a line of its own, and %% after words, which Mermaid keeps as wordsDrawnsourcepicture
A title in front matterDrawnsourcepicture
Merlive's own lines: a note on a box, by its idDrawnsourcepicture
A tree of many leavesDrawnsourcepicture
A whole mindmap: shapes, icons, a class, bold and broken linesDrawnsourcepicture

Kanban boards, feature by feature

A column is a group and a card a box that lists its ticket, who has it and its priority, on the grid the board is. Held to the same measure.

FeatureResultWhat is missingSamplePicture
A kanban board: columns side by side, and the cards of each down itDrawnsourcepicture
Columns and cards written with no brackets: each is called by what was writtenDrawnsourcepicture
Ids with a hyphen or a dot in them, a card called by its id, and one id written for two cardsDrawnsourcepicture
A column with no cards in it yetDrawnsourcepicture
Who has a card: assignedDrawnsourcepicture
The ticket a card is for, bare, in quotes or a numberDrawnsourcepicture
How pressing a card is: the four priorities Mermaid drawsDrawn, less somethingA priority is said in words on its card, where Mermaid draws a colour down the side of the cardsourcepicture
A priority Mermaid has no mark forDrawn, less somethingKept as written and said, where Mermaid draws nothing for itsourcepicture
A ticket, who has it and how pressing it is, all on one card, in any orderDrawn, less somethingA priority is said in words on its card, where Mermaid draws a colour down the side of the cardsourcepicture
What is set on a card, written over several linesDrawn, less somethingA priority is said in words on its card, where Mermaid draws a colour down the side of the cardsourcepicture
Something set on a card that a board has no place forDrawn, less somethingPassed over and said, where Mermaid passes over it and says nothingsourcepicture
A card's words set as its labelDrawnsourcepicture
Something set on a column, which neither Mermaid nor Merlive drawsDrawn, less somethingPassed over and said, where Mermaid passes over it and says nothingsourcepicture
Tickets with a place they link to, set in front matterDrawn, less somethingA ticket is listed on its card and is not a link out: a picture of Merlive's goes nowheresourcepicture
Front matter with a titleDrawnsourcepicture
Words in quotes, with a comma, a bracket and a parenthesis in themDrawnsourcepicture
A Markdown string: bold and italic on a cardDrawnsourcepicture
A line its author broke, with <br/> and by going on to the next line inside quotesDrawnsourcepicture
Entity codes in the words of a column and of a cardDrawnsourcepicture
Every way Mermaid lets the words of a card be written, each drawn as a cardDrawnsourcepicture
Comments, on lines of their own and after a cardDrawnsourcepicture
Cards written at different depths, and with a tab: anything further in than a column is its cardDrawnsourcepicture
Long words on a card and in the name of a columnDrawnsourcepicture
Merlive's own lines on a board: a note on a cardDrawnsourcepicture
A whole board: five columns, one of them empty, cards with and without tickets, people and priorities, a title and a place tickets link toDrawn, less somethingA priority is said in words on its card, where Mermaid draws a colour down the side; a ticket is not a link outsourcepicture

Timelines, feature by feature

A period is a box with its events under it and a section a group round its periods, on the grid a timeline is. Held to the same measure.

FeatureResultWhat is missingSamplePicture
Periods, each with one event: a period is a box, its event a box under itDrawnsourcepicture
A title, drawn above the pictureDrawnsourcepicture
Several events of one period on its lineDrawnsourcepicture
Events on the lines after their period, each line a colon and what happenedDrawnsourcepicture
Periods in which nothing is said to have happenedDrawnsourcepicture
No space before a colonDrawnsourcepicture
A colon with no space after it is part of the words (09:30)Drawnsourcepicture
The code for a colon in a period (#colon;)Drawnsourcepicture
Periods that are words, not datesDrawnsourcepicture
A line break in a period and in an event (<br>)Drawnsourcepicture
Events too long for one line, wrapped in their boxDrawnsourcepicture
Sections: each a group round the periods after itDrawnsourcepicture
Sections of one period and of several, with events of different numbersDrawnsourcepicture
A section with a long nameDrawnsourcepicture
Left to right, said (timeline LR)Drawnsourcepicture
Top to bottom (timeline TD): periods one under another, events beside eachDrawnsourcepicture
Top to bottom with sections, one under anotherDrawnsourcepicture
A title in front matterDrawnsourcepicture
One colour for every period (disableMulticolor), read past: the colours are the design'sDrawnsourcepicture
A theme and its colours in front matter, read past: the colours are the design'sDrawnsourcepicture
Comments on lines of their ownDrawnsourcepicture
What the picture is called and shows, for one who cannot see itDrawnsourcepicture
A description over several lines (accDescr { })Drawnsourcepicture
Merlive's own lines: a note for a period and for an event, and what a kind meansDrawnsourcepicture
Two periods of one name: each is its ownDrawnsourcepicture
Nine periods: a timeline as long as it was writtenDrawnsourcepicture
Six events in one periodDrawnsourcepicture
A single periodDrawnsourcepicture
A whole timeline: a title, three sections, periods with none, one and two events, a line breakDrawnsourcepicture

Packets, feature by feature

A field is a box as wide as the bits it takes, with its bits over its name, in rows of as many bits as the packet says. Held to the same measure.

FeatureResultWhat is missingSamplePicture
Fields by the bits they take, first to lastDrawnsourcepicture
A packet that opens "packet", not "packet-beta"Drawnsourcepicture
A title on a line of its ownDrawnsourcepicture
A title in front matterDrawnsourcepicture
Fields of one bit, among wider onesDrawnsourcepicture
Fields by how many bits each takes (+16), each starting where the last endedDrawnsourcepicture
Fields by their bits and by their length, mixedDrawnsourcepicture
A field that runs past the end of a row: drawn on both rows, each part with its own bitsDrawnsourcepicture
A field of several whole rowsDrawnsourcepicture
Sixteen bits to a row, said in front matterDrawnsourcepicture
Eight bits to a row, said in a directiveDrawnsourcepicture
Sixty-four bits to a rowDrawnsourcepicture
The bits left off the picture (showBits: false)Drawnsourcepicture
Mermaid's own sizes for a packet (bitWidth, rowHeight, padding), read pastDrawnsourcepicture
Comments on lines of their own and after a fieldDrawnsourcepicture
A title and a description for a reader who cannot see the pictureDrawnsourcepicture
Names in single quotes, with brackets in them, and one with no nameDrawnsourcepicture
A last row that is not fullDrawnsourcepicture
One field, a whole rowDrawnsourcepicture
Spaces round the dash and the colon, or noneDrawnsourcepicture
Merlive's own notes on fields, by the bit each starts atDrawnsourcepicture
A whole header: a title, fields from one bit to two rows, thirty-two columnsDrawnsourcepicture

Sequence diagrams, feature by feature

Held to the same measure: every participant, message, note, frame and word the corpus says a sample has is read, and every rule in SEQUENCE.md passes.

FeatureResultWhat is missingSamplePicture
Participants named by the messages they are inDrawnsourcepicture
Participants declared, in an order of their ownDrawnsourcepicture
Actors: people, not systemsDrawnsourcepicture
A participant with a type: boundary, control, entity, database, collections, queueDrawnsourcepicture
A participant with a short id and a name, written with "as"Drawnsourcepicture
A name written inside the bracesDrawnsourcepicture
A name inside the braces and another after "as": the one after "as" winsDrawnsourcepicture
A participant made part way down, and one endedDrawnsourcepicture
Participants grouped in boxes, with and without a colour and a titleDrawnsourcepicture
A message with no arrowhead, solid and dottedDrawnsourcepicture
A message with an arrowhead, solid and dottedDrawnsourcepicture
A message with an arrowhead at both endsDrawnsourcepicture
A message that ends in a crossDrawnsourcepicture
A message that does not wait: an open arrowDrawnsourcepicture
A message from a participant to itselfDrawnsourcepicture
Half arrowsDrawnsourcepicture
A message to or from the middle of a lineDrawnsourcepicture
A participant at work, written with activate and deactivateDrawnsourcepicture
A participant at work, written with + and -Drawnsourcepicture
A participant at work twice at onceDrawnsourcepicture
A note to the right or the left of a participantDrawnsourcepicture
A note over a participantDrawnsourcepicture
A note over two participantsDrawnsourcepicture
A line break in a message, a note and a nameDrawnsourcepicture
A loopDrawnsourcepicture
One way or another: alt and elseDrawnsourcepicture
Something that may not happen: optDrawnsourcepicture
Things done at once: par and andDrawnsourcepicture
A block inside a blockDrawnsourcepicture
What must happen, and what to do when it cannot: critical and optionDrawnsourcepicture
A critical block with no optionsDrawnsourcepicture
Where the sequence stops: breakDrawnsourcepicture
Rows highlighted with a coloured background, one inside anotherDrawnsourcepicture
Comments on lines of their ownDrawnsourcepicture
Characters written as entity codesDrawnsourcepicture
Messages numberedDrawnsourcepicture
Messages numbered from a start, by a stepDrawnsourcepicture
A menu of links on a participantDrawn, less somethingThe menus are left out: a page of Merlive opens no linkssourcepicture
A title in the diagramDrawnsourcepicture
A title and a description for readers who cannot see itDrawnsourcepicture
Statements parted by semicolonsDrawnsourcepicture
A title and settings in front matterDrawn, less somethingMermaid's own settings are read past: the look and the numbering are the design's and the diagram's ownsourcepicture

Other kinds of diagram

One that is not drawn is left exactly as it was written, and the command names it. The family says what it would take: a diagram of boxes and links could be placed by the rules Merlive already has; the others need a way of drawing of their own.

Steps in order

KindResultSamplePicture
Sequence diagramDrawnsourcepicture
ZenUML sequence diagramLeft as Mermaidsource
Event modelLeft as Mermaidsource
User journeyLeft as Mermaidsource
TimelineDrawnsourcepicture
Gantt chartLeft as Mermaidsource
Git graphLeft as Mermaidsource
KindResultSamplePicture
Class diagramDrawnsourcepicture
State diagramDrawnsourcepicture
Entity relationship diagramDrawnsourcepicture
Requirement diagramDrawnsourcepicture
C4 diagramDrawnsourcepicture
Block diagramDrawnsourcepicture
Architecture diagramDrawnsourcepicture
Swimlane diagramLeft as Mermaidsource
Use case diagramLeft as Mermaidsource
Agent flowLeft as Mermaidsource

Tree

KindResultSamplePicture
MindmapDrawnsourcepicture
Tree viewLeft as Mermaidsource
Ishikawa (fishbone) diagramLeft as Mermaidsource
Kanban boardDrawnsourcepicture

Chart

KindResultSamplePicture
TreemapLeft as Mermaidsource
Pie chartLeft as Mermaidsource
Quadrant chartLeft as Mermaidsource
XY chartLeft as Mermaidsource
Sankey diagramLeft as Mermaidsource
Radar chartLeft as Mermaidsource
Packet diagramDrawnsourcepicture
Venn diagramLeft as Mermaidsource
Cynefin frameworkLeft as Mermaidsource
Wardley mapLeft as Mermaidsource

Grammar

KindResultSamplePicture
Railroad (syntax) diagramLeft as Mermaidsource

Written from docs/COVERAGE.md in the repository, so the two cannot disagree.

Before: The whole referenceNext: What changed