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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A flowchart, declared with "flowchart" | Drawn | source | picture | |
| A flowchart, declared with "graph" | Drawn | source | picture | |
| Direction TB: top to bottom | Drawn | source | picture | |
| Direction TD: top down | Drawn | source | picture | |
| Direction LR: left to right | Drawn | source | picture | |
| Direction BT: bottom to top | Drawn | source | picture | |
| Direction RL: right to left | Drawn | source | picture | |
| A title and settings in front matter | Drawn, less something | Mermaid's own settings are read past: the look is the design's | source | picture |
| Settings in an init directive | Drawn, less something | Mermaid's own settings are read past: the look is the design's | source | picture |
| Comments on lines of their own | Drawn | source | picture | |
| A title and a description for readers who cannot see it | Drawn | source | picture | |
| A description written over several lines | Drawn | source | picture | |
| Statements ended with semicolons, and no spaces | Drawn | source | picture | |
| Boxes named by their id alone | Drawn | source | picture | |
| A box with words | Drawn | source | picture | |
| Words in other alphabets | Drawn | source | picture | |
| Brackets and signs inside quotes | Drawn | source | picture | |
| Characters written as entity codes | Drawn | source | picture | |
| A line break in a label | Drawn | source | picture | |
| Markdown strings: bold, italic and a real line break | Drawn | source | picture | |
| A Font Awesome icon in a label | Drawn, less something | The icons are Merlive's own drawings of a truck and a tick, not Font Awesome's | source | picture |
| Shape: Round edges | Drawn, less something | Its corners are the design's, the same as every box | source | picture |
| Shape: Stadium | Drawn | source | picture | |
| Shape: Subroutine | Drawn | source | picture | |
| Shape: Cylinder, a database | Drawn | source | picture | |
| Shape: Circle | Drawn, less something | Drawn as a pill: a circle the height of a box would hold three letters | source | picture |
| Shape: Asymmetric, a flag | Drawn | source | picture | |
| Shape: Rhombus, a decision | Drawn | source | picture | |
| Shape: Hexagon | Drawn | source | picture | |
| Shape: Parallelogram | Drawn | source | picture | |
| Shape: Parallelogram, leaning back | Drawn | source | picture | |
| Shape: Trapezoid | Drawn | source | picture | |
| Shape: Trapezoid, upside down | Drawn | source | picture | |
| Shape: Double circle | Drawn | source | picture | |
| Shapes written as @{ shape: … }, with a label | Partly read | its shapes are read as box, diamond, cylinder, document, pill | source | picture |
| Every one of the 53 newer shapes | Drawn, less something | Those Merlive has a drawing for are drawn as themselves; the rest are boxes | source | picture |
| A box that is an icon | Drawn, less something | The icon is Merlive's own drawing of a user, beside the label and not above it | source | picture |
| A box that is an image | Drawn, less something | The image is left out (a page of Merlive fetches nothing); its label is kept | source | picture |
| Boxes given a row and a column | Drawn, less something | The rows and columns are read past: placement is Merlive's | source | picture |
| A link with an arrowhead | Drawn | source | picture | |
| A link with no arrowhead | Drawn | source | picture | |
| Words on a link, between bars | Drawn | source | picture | |
| Words on a link, written into it | Drawn | source | picture | |
| A dotted link, with and without words | Drawn | source | picture | |
| A thick link, with and without words | Drawn | source | picture | |
| An invisible link, used to nudge placement | Drawn, less something | Its boxes are read and the link is left out: it is only there to nudge Mermaid's placement, and placement is Merlive's | source | picture |
| Links chained in one line | Drawn | source | picture | |
| One line linking to several boxes with & | Drawn | source | picture | |
| Several boxes to several boxes with & | Drawn | source | picture | |
| A link ending in a circle or a cross | Drawn | source | picture | |
| Arrows at both ends | Drawn | source | picture | |
| Links drawn longer, to push a box further on | Drawn, less something | The extra length is read past: placement is Merlive's | source | picture |
| A link from a box to itself | Drawn | source | picture | |
| A link given an id | Drawn | source | picture | |
| A link set to animate | Drawn, less something | Mermaid's animation is read past: movement is the design's, and starts when a reader asks | source | picture |
| Links played one step after another | Drawn, less something | The step numbers are read past; a walkthrough is written with "%% step" | source | picture |
| A link given a curve of its own | Drawn, less something | The curve is read past: lines turn at right angles by rule | source | picture |
| A group named by its title | Drawn | source | picture | |
| A group with an id and a title | Drawn | source | picture | |
| Links to a group and between groups | Drawn | source | picture | |
| A group with a direction of its own | Drawn | source | picture | |
| A group inside a group | Drawn | source | picture | |
| A group shown collapsed | Drawn, less something | Drawn open: a picture cannot be opened and closed | source | picture |
| A box styled on its own | Drawn, less something | Its outline is broken, heavy and red as written, in the design's own red; its fill is the design's | source | picture |
| Links styled by their number | Drawn, less something | The link is heavy and red as written, in the design's own red; a default for every link is read past | source | picture |
| A class made and given to boxes | Drawn | source | picture | |
| A class given with ::: | Drawn | source | picture | |
| A default class for every box | Drawn, less something | The default class is read past: the look is the design's | source | picture |
| A box that calls a function when clicked | Drawn, less something | The click is left out: a page of Merlive runs no code of yours | source | picture |
| A box that opens a link when clicked | Drawn, less something | The link is left out | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A state diagram, declared with "stateDiagram-v2" | Drawn | source | picture | |
| A state diagram, declared with "stateDiagram" | Drawn | source | picture | |
| States named by their id alone | Drawn | source | picture | |
| A state with words, written "state words as id" | Drawn | source | picture | |
| A state with words, written "id : words" | Drawn | source | picture | |
| Words given a line at a time | Drawn | source | picture | |
| A name with spaces, by way of an id | Drawn | source | picture | |
| Transitions | Drawn | source | picture | |
| Transitions with words | Drawn | source | picture | |
| A transition from a state to itself | Drawn | source | picture | |
| Where it starts and where it ends | Drawn, less something | Where it starts and where it ends are pills that say so, not dots | source | picture |
| A composite state | Drawn, less something | A transition to a composite state is drawn to where it starts inside, and one from it from where it ends | source | picture |
| A composite state named on a line of its own | Drawn, less something | A transition to a composite state is drawn to where it starts inside, and one from it from where it ends | source | picture |
| A composite state inside another | Drawn | source | picture | |
| Transitions between composite states | Drawn, less something | A transition to a composite state is drawn to where it starts inside, and one from it from where it ends | source | picture |
| A choice | Drawn, less something | A choice is a decision the size of every box, with its name in it; Mermaid draws a small diamond with none | source | picture |
| A fork and a join | Drawn | source | picture | |
| A note on one line, on either side | Drawn, less something | A 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 it | source | picture |
| A note written over several lines | Drawn, less something | A 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 it | source | picture |
| Concurrency: regions of a composite state parted by -- | Drawn | source | picture | |
| The direction of the diagram | Drawn | source | picture | |
| A composite state with a direction of its own | Drawn | source | picture | |
| Comments, on a line of their own and at the end of one | Drawn | source | picture | |
| A class made with classDef and given with class | Drawn | source | picture | |
| A class given with ::: | Drawn | source | picture | |
| A title and a description for readers who cannot see it | Drawn | source | picture | |
| A title and settings in front matter | Drawn, less something | Mermaid's own settings are read past: the look is the design's | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A class, declared with "class" | Drawn | source | picture | |
| Two classes made by tying one to the other | Drawn | source | picture | |
| A class diagram, declared with "classDiagram-v2" | Drawn | source | picture | |
| A title in front matter | Drawn | source | picture | |
| A class with a label | Drawn | source | picture | |
| A class named between backticks | Drawn | source | picture | |
| Members given one at a time, after a colon | Drawn | source | picture | |
| Members given together, between brackets | Drawn | source | picture | |
| What a method gives back | Drawn | source | picture | |
| Generic types, in a class, a member and what a method gives back | Drawn | source | picture | |
| Who may see a member: public, private, protected, package | Drawn | source | picture | |
| Members marked abstract or static | Drawn, less something | Abstract and static are said in words at the end of the row, where Mermaid slants or underlines it | source | picture |
| The eight relations | Drawn | source | picture | |
| The eight relations written the other way round, each with words | Drawn, less something | "Is a" is drawn from the parent down to the child, whichever way it was written | source | picture |
| Words on a relation | Drawn | source | picture | |
| A relation that says something at both ends | Drawn | source | picture | |
| A lollipop interface | Drawn, less something | A lollipop is drawn as a box of its own, named for the interface and marked «interface», with the circle on its line | source | picture |
| How many, at either end of a relation | Drawn | source | picture | |
| A namespace | Drawn | source | picture | |
| A namespace with a label | Drawn | source | picture | |
| A namespace written inside another | Drawn | source | picture | |
| Namespaces inside one another, spelt with dots | Drawn | source | picture | |
| An annotation, on the line that declares the class | Drawn | source | picture | |
| An annotation, on a line of its own | Drawn | source | picture | |
| An annotation, inside the class | Drawn | source | picture | |
| A comment on a line of its own | Drawn | source | picture | |
| A direction for the whole diagram | Drawn, less something | Drawn top to bottom: boxes of different heights are only placed that way yet | source | picture |
| A class that opens a link or calls a function when clicked | Drawn, less something | The clicks are left out: a page of Merlive opens no links and runs no code of yours | source | picture |
| A note for a class | Drawn | source | picture | |
| A note for no class in particular | Drawn | source | picture | |
| A class styled on its own | Drawn, less something | Each outline is heavy or broken as written, in the design's own nearest colour; the fill is the design's | source | picture |
| A style class made with classDef and given with cssClass | Drawn | source | picture | |
| A style class given with ::: | Drawn | source | picture | |
| A default style class for every class | Drawn, less something | The default class is read past: the look is the design's | source | picture |
| A style class kept in the page's own stylesheet | Drawn, less something | A page's own stylesheet cannot be read from here: the class is of that kind, in the design's plain look | source | picture |
| A whole diagram: classes, what they list, what they inherit, and a note | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| An entity diagram: entities, and the relationships between them | Drawn | source | picture | |
| An entity with no relationships | Drawn | source | picture | |
| Attributes: a type and a name each | Drawn | source | picture | |
| An entity declared twice, its attributes joined | Drawn | source | picture | |
| An entity declared with no attributes between its braces | Drawn | source | picture | |
| A name with a hyphen in it | Drawn | source | picture | |
| A name with spaces, in quotes | Drawn | source | picture | |
| Names, words and attributes in other alphabets | Drawn | source | picture | |
| A name written as Markdown | Drawn, less something | Bold and italic are drawn as plain words | source | picture |
| An alias shown in place of the name | Drawn | source | picture | |
| Zero or one, at either end | Drawn | source | picture | |
| Exactly one, at either end | Drawn | source | picture | |
| Zero or more, at either end | Drawn | source | picture | |
| One or more, at either end | Drawn | source | picture | |
| A mark written the other way round for its end | Drawn | source | picture | |
| How many, written in words | Drawn | source | picture | |
| How many, in the short forms: 1, 1+, 0+, many(0), many(1) | Drawn | source | picture | |
| A relationship that identifies: a solid line | Drawn | source | picture | |
| A relationship that does not identify: a dotted line | Drawn | source | picture | |
| Identifying or not, written in words | Drawn | source | picture | |
| A relationship's words, in quotes | Drawn | source | picture | |
| A relationship with empty words | Drawn | source | picture | |
| A relationship written with no spaces | Drawn | source | picture | |
| A relationship from an entity to itself | Drawn | source | picture | |
| Keys: primary, foreign and unique | Drawn | source | picture | |
| Several keys on one attribute | Drawn | source | picture | |
| A star before a name, for a primary key | Drawn | source | picture | |
| A comment on an attribute | Drawn, less something | A comment is not in its row: it is in the note on its entity, which a reader sees on picking the box | source | picture |
| Types with a length, a list, and two numbers | Drawn | source | picture | |
| A type that may be missing | Drawn | source | picture | |
| Direction: top to bottom | Drawn | source | picture | |
| Direction: left to right | Drawn, less something | Drawn top to bottom: boxes of different heights are only placed that way yet | source | picture |
| A group, named by one word | Drawn | source | picture | |
| A group named by words in quotes | Drawn | source | picture | |
| A group with an id and a title | Drawn | source | picture | |
| A group inside a group | Drawn | source | picture | |
| Relationships to and from groups | Drawn, less something | A relationship with a group is drawn to where the group starts, or from where it ends | source | picture |
| A group with a direction of its own | Drawn, less something | The group's own direction is read past; it runs the way the rest does | source | picture |
| An entity styled on its own | Drawn, less something | Its outline is broken, heavy and red as written, in the design's own red; its fill is the design's | source | picture |
| Several entities styled in one line | Drawn, less something | Their outlines are heavy and blue as written, in the design's own blue | source | picture |
| A class made and given to entities | Drawn | source | picture | |
| Several classes given at once | Drawn, less something | A box is of one kind: of several classes, the first is the one it is | source | picture |
| A class given with ::: | Drawn | source | picture | |
| A class given with ::: in a relationship | Drawn | source | picture | |
| A default class for every entity | Drawn, less something | The default class is read past: the look is the design's | source | picture |
| A title and settings in front matter | Drawn, less something | Mermaid's own settings are read past: the look and the placement are Merlive's | source | picture |
| A title and a description for readers who cannot see it | Drawn | source | picture | |
| Comments, on lines of their own, between statements and between attributes | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A requirement diagram: a requirement, an element, and how one bears on the other | Drawn | source | picture | |
| The six kinds of requirement | Drawn | source | picture | |
| What is said of a requirement: its id, its text, its risk and how it is verified | Drawn | source | picture | |
| What is said of a requirement, written in another order | Drawn | source | picture | |
| Requirements of which only some things are said | Drawn | source | picture | |
| The three risks: low, medium and high | Drawn | source | picture | |
| The four ways to verify: analysis, demonstration, inspection and test | Drawn | source | picture | |
| Mermaid's own words written with capitals | Drawn | source | picture | |
| A requirement and an element of which nothing is said | Drawn | source | picture | |
| An id with dots, and one of letters | Drawn | source | picture | |
| An id in quotes | Drawn | source | picture | |
| A text in quotes, with a colon and a comma in it | Drawn | source | picture | |
| A text written as Markdown | Drawn, less something | Bold and italic in a requirement's text are drawn as plain words | source | picture |
| An element: its type and the document it points to | Drawn | source | picture | |
| An element's type and document in quotes | Drawn | source | picture | |
| Elements with a type or a document, not both | Drawn | source | picture | |
| The seven relationships | Drawn | source | picture | |
| Relationships written from their other end | Drawn | source | picture | |
| A requirement that contains others | Drawn, less something | The crossed ring Mermaid draws at the requirement that contains is drawn as a filled circle | source | picture |
| Relationships written with no spaces | Drawn | source | picture | |
| A relationship's word written with a capital | Drawn | source | picture | |
| A relationship from a requirement to itself | Drawn | source | picture | |
| A relationship written before what it joins is declared | Drawn | source | picture | |
| Names in quotes, of several words | Drawn | source | picture | |
| Names of several words, without quotes | Drawn | source | picture | |
| A name and a text in another alphabet | Drawn | source | picture | |
| Names with a dot, and one that starts with a digit | Drawn | source | picture | |
| A name written as Markdown | Drawn | source | picture | |
| A requirement declared twice | Drawn | source | picture | |
| Direction: top to bottom | Drawn | source | picture | |
| Direction: left to right | Drawn, less something | Drawn top to bottom: boxes of different heights are only placed that way yet | source | picture |
| Direction: bottom to top | Drawn, less something | Drawn top to bottom: boxes of different heights are only placed that way yet | source | picture |
| A class made with classDef and given to several with class | Drawn | source | picture | |
| A class given with ::: where a thing is declared | Drawn | source | picture | |
| A class given with ::: to a name alone | Drawn | source | picture | |
| Several classes given at once | Drawn, less something | A box is of one kind: of several classes, the first is the one it is | source | picture |
| A default class for every requirement | Drawn, less something | The default class is read past: the look is the design's | source | picture |
| A requirement styled on its own | Drawn, less something | Its outline is heavy and red as written, in the design's own red; its fill is the design's | source | picture |
| Several styled in one line, one named in quotes | Drawn, less something | Their outlines are broken and red as written, in the design's own red | source | picture |
| A title in front matter | Drawn | source | picture | |
| A title and a description for readers who cannot see it | Drawn | source | picture | |
| A description over several lines | Drawn | source | picture | |
| Comments: on lines of their own, and after the { that opens a requirement | Drawn | source | picture | |
| A directive for Mermaid's own settings | Drawn, less something | Mermaid's own settings are read past: the look is the design's | source | picture |
| Blank lines between and inside declarations | Drawn | source | picture | |
| A whole diagram: requirements of three kinds, two elements, and how they bear on each other | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A system in its context: a person, a system and one that is someone else's | Drawn | source | picture | |
| People: one of the firm and one outside it | Drawn | source | picture | |
| Systems: a system, one that is a database and one that is a queue | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| Systems that are someone else's, a database and a queue among them | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| Containers, with what each is made in and what it does | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| Containers that are someone else's | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| Components, with what each is made in and what it does | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| Components that are someone else's | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
| A boundary round some of the elements | Drawn | source | picture | |
| A boundary that says what kind of boundary it is | Drawn | source | picture | |
| An enterprise's boundary with a system's boundary inside it | Drawn, less something | Mermaid writes [ENTERPRISE] and [SYSTEM] under the names of these boundaries; a type that was not written is not added | source | picture |
| A container's boundary | Drawn, less something | Mermaid writes [CONTAINER] under the name of this boundary; a type that was not written is not added | source | picture |
| Boundaries three deep | Drawn, less something | Mermaid writes [ENTERPRISE], [SYSTEM] and [CONTAINER] under the names of these boundaries; a type that was not written is not added | source | picture |
| A boundary whose { is on the line below it | Drawn | source | picture | |
| A deployment: nodes inside a node, and what runs on each | Drawn | source | picture | |
| Nodes written as Node, Node_L and Node_R | Drawn | source | picture | |
| A node that is described as well as named | Drawn, less something | What a node is described as is not drawn: a group has a name and nothing more | source | picture |
| A relation | Drawn | source | picture | |
| A relation that says how it is made, and one that is described | Drawn | source | picture | |
| A relation that runs both ways | Drawn | source | picture | |
| A relation that runs back, from the second to the first | Drawn | source | picture | |
| Relations that say which way Mermaid should draw them | Drawn, less something | Up, down, left and right are read past: where a box goes is Merlive's to say | source | picture |
| A dynamic diagram: what happens, in order | Drawn | source | picture | |
| Relations given an index | Drawn | source | picture | |
| Arguments given by name | Drawn | source | picture | |
| Tags, links and sprites | Drawn, less something | A link is not followed: a page runs nothing of an author's. Tags and sprites are read past, as Mermaid reads past them | source | picture |
| Arguments left empty | Drawn | source | picture | |
| An element given colours of its own | Drawn, less something | Its fill is the colour written, as the nearest colour of the design; the colours of its words and its edge are the design's | source | picture |
| An element given colours by name | Drawn, less something | A colour given by name is not read: only one written as #rrggbb is | source | picture |
| A relation given colours of its own, and its words moved | Drawn, less something | A link's colour is the design's; where its words sit is Merlive's to place | source | picture |
| A relation whose words are moved | Drawn | source | picture | |
| How many elements and boundaries Mermaid should put in a row | Drawn | source | picture | |
| A title | Drawn | source | picture | |
| Front matter with a title | Drawn | source | picture | |
| accTitle and accDescr | Drawn | source | picture | |
| Comments on lines of their own | Drawn | source | picture | |
| Commas, brackets and %% inside quotes | Drawn | source | picture | |
| A line break in a label and in a description | Drawn | source | picture | |
| Words in quotes that run on down the lines | Drawn | source | picture | |
| An element declared twice | Drawn | source | picture | |
| A whole diagram: people, a boundary of containers, a database, a queue and a system outside | Drawn, less something | A queue is drawn as a pill: there is no cylinder on its side yet | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| Services, each with an icon and a title, and an edge between them | Drawn | source | picture | |
| The icons Mermaid is born with: cloud, database, disk, internet, server | Drawn, less something | A disk is drawn with the database's drawing: Merlive has no drawing of a disk of its own yet | source | picture |
| An icon from a pack by its name (logos:aws-lambda) | Drawn, less something | An icon from a pack is somebody's mark, which Merlive neither fetches nor draws: the words are kept, and it is said | source | picture |
| A service with no icon | Drawn | source | picture | |
| A service with no title | Drawn, less something | A box says something: a service with no title takes its id for its words, where Mermaid draws the icon alone | source | picture |
| A title in quotes, with what a bare title may not hold | Drawn | source | picture | |
| Ids with a hyphen and an underscore | Drawn | source | picture | |
| A group, the services in it, and one outside it | Drawn, less something | A group's icon is not drawn: a frame is named by its title | source | picture |
| A group inside a group | Drawn, less something | A group's icon is not drawn: a frame is named by its title | source | picture |
| A group declared after the services said to be in it | Drawn, less something | A group's icon is not drawn: a frame is named by its title | source | picture |
| A group with no icon | Drawn | source | picture | |
| Edges that leave by every side: right to left, left to right, bottom to top | Drawn | source | picture | |
| An edge that leaves by the top and meets a side | Drawn | source | picture | |
| Arrowheads: into the second, into the first, into both | Drawn | source | picture | |
| Words on an edge | Drawn | source | picture | |
| Words on an edge with arrowheads | Drawn | source | picture | |
| Edges written with no spaces | Drawn | source | picture | |
| An edge out of a group and into a group ({group}) | Drawn, less something | A 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 title | source | picture |
| An edge from a service to itself | Drawn | source | picture | |
| A junction: where edges meet and part | Drawn, less something | A junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet | source | picture |
| A junction in a group | Drawn, less something | A 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 title | source | picture |
| Services lined up in a column (align) | Drawn, less something | Lining 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 title | source | picture |
| A title written in the diagram | Drawn | source | picture | |
| Front matter: a title, and Mermaid's own settings | Drawn | source | picture | |
| accTitle and accDescr, on a line and over several | Drawn | source | picture | |
| Comments, on a line of their own and after a line | Drawn | source | picture | |
| A diagram whose edges run top to bottom | Drawn | source | picture | |
| A whole diagram: groups in groups, services, a junction, edges with arrowheads and words | Drawn, less something | A 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 title | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A block diagram that is a flow: blocks in a row, each joined to the next | Drawn | source | picture | |
| The older name of the kind: block-beta | Drawn | source | picture | |
| columns 1: blocks one under the other, joined | Drawn | source | picture | |
| No columns given: one row | Drawn | source | picture | |
| columns auto: one row, each column as wide as it needs | Drawn | source | picture | |
| Blocks that wrap to a second row, joined in the order written | Drawn | source | picture | |
| Blocks with no words: each is called by its id | Drawn | source | picture | |
| Words broken with <br/>, and an entity code | Drawn | source | picture | |
| A link with no arrowhead | Drawn | source | picture | |
| Words written into a link | Drawn | source | picture | |
| Links thick and dotted, ending in a circle, a cross, an arrow at both ends, and dotted with words | Drawn | source | picture | |
| Blocks given their shape and words in the link that joins them | Drawn | source | picture | |
| A link to a block not written anywhere else, which makes it | Drawn | source | picture | |
| A space between two blocks, to make room for the link that joins them (how Mermaid says to draw a link) | Drawn | source | picture | |
| A space between two blocks one under the other, for the link that joins them | Drawn | source | picture | |
| space:3 between two joined blocks: more room for the same link | Drawn | source | picture | |
| Every shape of a block, joined in a chain | Drawn, less something | A block with round corners is a box, and a circle is a pill, as in a flowchart | source | picture |
| A block that holds others: a group | Drawn | source | picture | |
| A block that holds others, with a name and columns of its own | Drawn, less something | Merlive draws the name its author gave the block; Mermaid 11 draws none | source | picture |
| A block that holds others and has no id | Drawn | source | picture | |
| Blocks that hold others, inside one that holds them | Drawn | source | picture | |
| Links to and from a block that holds others: joined to what is inside it | Drawn | source | picture | |
| A block styled on its own: a heavy outline, a broken one | Drawn, less something | The colour is drawn in the design's nearest colour | source | picture |
| A class, and the blocks that are of it | Drawn, less something | The colour is drawn in the design's nearest colour | source | picture |
| Comments on lines of their own | Drawn | source | picture | |
| Front matter with a title | Drawn | source | picture | |
| A grid of blocks with no links: what it says is where each block is | Drawn | source | picture | |
| Every shape of a block, laid out in a grid with no links | Drawn | source | picture | |
| One block on its own | Drawn | source | picture | |
| Blocks that span columns: a wide block over two narrower ones | Drawn | source | picture | |
| A block that spans the grid under two others, a space between them and an empty row | Drawn | source | picture | |
| Spaces that put a block under the one it belongs to | Drawn | source | picture | |
| Block arrows between cells: arrows drawn as blocks, placed by the grid | Drawn | source | picture | |
| A block arrow pointing every way it can | Drawn, less something | An arrow that points across and down is drawn pointing both ways across: Merlive draws an arrow along one line | source | picture |
| Blocks that hold grids of their own, and span columns of the grid they are in | Drawn | source | picture | |
| A grid with a block arrow, a block that holds others, a space and links (from Mermaid's own guide) | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A mindmap: a root, and what is under it by how far in each line is written | Drawn | source | picture | |
| A root with nothing under it | Drawn | source | picture | |
| Five steps in from the root | Drawn | source | picture | |
| Lines written unevenly: each is under the nearest line above it that is further left | Drawn | source | picture | |
| Lines set in with tabs | Drawn | source | picture | |
| A root written at the margin | Drawn | source | picture | |
| Empty lines between the lines of a tree | Drawn | source | picture | |
| The first word with a semicolon after it | Drawn | source | picture | |
| A line of bare words: the shape Mermaid gives when none is written | Drawn | source | picture | |
| A square | Drawn | source | picture | |
| A rounded square | Drawn | source | picture | |
| A circle | Drawn | source | picture | |
| A hexagon | Drawn | source | picture | |
| A bang | Drawn, less something | A bang is a box with a heavy outline, not a burst | source | picture |
| A cloud | Drawn, less something | A cloud is a round-ended box with a dashed outline, not a cloud | source | picture |
| A circle, a hexagon, a square and bare words in one tree | Drawn | source | picture | |
| A square and a rounded square in one tree | Drawn, less something | A square and a rounded square are the same box: its corners are the design's | source | picture |
| An id apart from its words | Drawn | source | picture | |
| An id of several words | Drawn | source | picture | |
| A shape with no id before it | Drawn | source | picture | |
| Bare words with a bracket in them: what is before it is the id | Drawn | source | picture | |
| Words in quotes, with a colon and brackets in them | Drawn | source | picture | |
| Two lines of the same words: two boxes | Drawn | source | picture | |
| An icon, on the line under its box | Drawn | source | picture | |
| An icon Merlive has no drawing for | Drawn, less something | The icon is left out | source | picture |
| A class, on the line under its box | Drawn, less something | A class has no colour of its own: Mermaid takes one from the page it is on | source | picture |
| A class for the root | Drawn | source | picture | |
| A Markdown string: bold and italic | Drawn | source | picture | |
| A Markdown string of several lines | Drawn | source | picture | |
| Bold and italic with no Markdown string round them | Drawn | source | picture | |
| A line broken with <br/> | Drawn | source | picture | |
| Words long enough to be wrapped | Drawn | source | picture | |
| Words in other scripts, and an emoji | Drawn | source | picture | |
| A comment on a line of its own, and %% after words, which Mermaid keeps as words | Drawn | source | picture | |
| A title in front matter | Drawn | source | picture | |
| Merlive's own lines: a note on a box, by its id | Drawn | source | picture | |
| A tree of many leaves | Drawn | source | picture | |
| A whole mindmap: shapes, icons, a class, bold and broken lines | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| A kanban board: columns side by side, and the cards of each down it | Drawn | source | picture | |
| Columns and cards written with no brackets: each is called by what was written | Drawn | source | picture | |
| Ids with a hyphen or a dot in them, a card called by its id, and one id written for two cards | Drawn | source | picture | |
| A column with no cards in it yet | Drawn | source | picture | |
| Who has a card: assigned | Drawn | source | picture | |
| The ticket a card is for, bare, in quotes or a number | Drawn | source | picture | |
| How pressing a card is: the four priorities Mermaid draws | Drawn, less something | A priority is said in words on its card, where Mermaid draws a colour down the side of the card | source | picture |
| A priority Mermaid has no mark for | Drawn, less something | Kept as written and said, where Mermaid draws nothing for it | source | picture |
| A ticket, who has it and how pressing it is, all on one card, in any order | Drawn, less something | A priority is said in words on its card, where Mermaid draws a colour down the side of the card | source | picture |
| What is set on a card, written over several lines | Drawn, less something | A priority is said in words on its card, where Mermaid draws a colour down the side of the card | source | picture |
| Something set on a card that a board has no place for | Drawn, less something | Passed over and said, where Mermaid passes over it and says nothing | source | picture |
| A card's words set as its label | Drawn | source | picture | |
| Something set on a column, which neither Mermaid nor Merlive draws | Drawn, less something | Passed over and said, where Mermaid passes over it and says nothing | source | picture |
| Tickets with a place they link to, set in front matter | Drawn, less something | A ticket is listed on its card and is not a link out: a picture of Merlive's goes nowhere | source | picture |
| Front matter with a title | Drawn | source | picture | |
| Words in quotes, with a comma, a bracket and a parenthesis in them | Drawn | source | picture | |
| A Markdown string: bold and italic on a card | Drawn | source | picture | |
| A line its author broke, with <br/> and by going on to the next line inside quotes | Drawn | source | picture | |
| Entity codes in the words of a column and of a card | Drawn | source | picture | |
| Every way Mermaid lets the words of a card be written, each drawn as a card | Drawn | source | picture | |
| Comments, on lines of their own and after a card | Drawn | source | picture | |
| Cards written at different depths, and with a tab: anything further in than a column is its card | Drawn | source | picture | |
| Long words on a card and in the name of a column | Drawn | source | picture | |
| Merlive's own lines on a board: a note on a card | Drawn | source | picture | |
| A whole board: five columns, one of them empty, cards with and without tickets, people and priorities, a title and a place tickets link to | Drawn, less something | A priority is said in words on its card, where Mermaid draws a colour down the side; a ticket is not a link out | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| Periods, each with one event: a period is a box, its event a box under it | Drawn | source | picture | |
| A title, drawn above the picture | Drawn | source | picture | |
| Several events of one period on its line | Drawn | source | picture | |
| Events on the lines after their period, each line a colon and what happened | Drawn | source | picture | |
| Periods in which nothing is said to have happened | Drawn | source | picture | |
| No space before a colon | Drawn | source | picture | |
| A colon with no space after it is part of the words (09:30) | Drawn | source | picture | |
| The code for a colon in a period (#colon;) | Drawn | source | picture | |
| Periods that are words, not dates | Drawn | source | picture | |
| A line break in a period and in an event (<br>) | Drawn | source | picture | |
| Events too long for one line, wrapped in their box | Drawn | source | picture | |
| Sections: each a group round the periods after it | Drawn | source | picture | |
| Sections of one period and of several, with events of different numbers | Drawn | source | picture | |
| A section with a long name | Drawn | source | picture | |
| Left to right, said (timeline LR) | Drawn | source | picture | |
| Top to bottom (timeline TD): periods one under another, events beside each | Drawn | source | picture | |
| Top to bottom with sections, one under another | Drawn | source | picture | |
| A title in front matter | Drawn | source | picture | |
| One colour for every period (disableMulticolor), read past: the colours are the design's | Drawn | source | picture | |
| A theme and its colours in front matter, read past: the colours are the design's | Drawn | source | picture | |
| Comments on lines of their own | Drawn | source | picture | |
| What the picture is called and shows, for one who cannot see it | Drawn | source | picture | |
| A description over several lines (accDescr { }) | Drawn | source | picture | |
| Merlive's own lines: a note for a period and for an event, and what a kind means | Drawn | source | picture | |
| Two periods of one name: each is its own | Drawn | source | picture | |
| Nine periods: a timeline as long as it was written | Drawn | source | picture | |
| Six events in one period | Drawn | source | picture | |
| A single period | Drawn | source | picture | |
| A whole timeline: a title, three sections, periods with none, one and two events, a line break | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| Fields by the bits they take, first to last | Drawn | source | picture | |
| A packet that opens "packet", not "packet-beta" | Drawn | source | picture | |
| A title on a line of its own | Drawn | source | picture | |
| A title in front matter | Drawn | source | picture | |
| Fields of one bit, among wider ones | Drawn | source | picture | |
| Fields by how many bits each takes (+16), each starting where the last ended | Drawn | source | picture | |
| Fields by their bits and by their length, mixed | Drawn | source | picture | |
| A field that runs past the end of a row: drawn on both rows, each part with its own bits | Drawn | source | picture | |
| A field of several whole rows | Drawn | source | picture | |
| Sixteen bits to a row, said in front matter | Drawn | source | picture | |
| Eight bits to a row, said in a directive | Drawn | source | picture | |
| Sixty-four bits to a row | Drawn | source | picture | |
| The bits left off the picture (showBits: false) | Drawn | source | picture | |
| Mermaid's own sizes for a packet (bitWidth, rowHeight, padding), read past | Drawn | source | picture | |
| Comments on lines of their own and after a field | Drawn | source | picture | |
| A title and a description for a reader who cannot see the picture | Drawn | source | picture | |
| Names in single quotes, with brackets in them, and one with no name | Drawn | source | picture | |
| A last row that is not full | Drawn | source | picture | |
| One field, a whole row | Drawn | source | picture | |
| Spaces round the dash and the colon, or none | Drawn | source | picture | |
| Merlive's own notes on fields, by the bit each starts at | Drawn | source | picture | |
| A whole header: a title, fields from one bit to two rows, thirty-two columns | Drawn | source | picture |
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.
| Feature | Result | What is missing | Sample | Picture |
|---|---|---|---|---|
| Participants named by the messages they are in | Drawn | source | picture | |
| Participants declared, in an order of their own | Drawn | source | picture | |
| Actors: people, not systems | Drawn | source | picture | |
| A participant with a type: boundary, control, entity, database, collections, queue | Drawn | source | picture | |
| A participant with a short id and a name, written with "as" | Drawn | source | picture | |
| A name written inside the braces | Drawn | source | picture | |
| A name inside the braces and another after "as": the one after "as" wins | Drawn | source | picture | |
| A participant made part way down, and one ended | Drawn | source | picture | |
| Participants grouped in boxes, with and without a colour and a title | Drawn | source | picture | |
| A message with no arrowhead, solid and dotted | Drawn | source | picture | |
| A message with an arrowhead, solid and dotted | Drawn | source | picture | |
| A message with an arrowhead at both ends | Drawn | source | picture | |
| A message that ends in a cross | Drawn | source | picture | |
| A message that does not wait: an open arrow | Drawn | source | picture | |
| A message from a participant to itself | Drawn | source | picture | |
| Half arrows | Drawn | source | picture | |
| A message to or from the middle of a line | Drawn | source | picture | |
| A participant at work, written with activate and deactivate | Drawn | source | picture | |
| A participant at work, written with + and - | Drawn | source | picture | |
| A participant at work twice at once | Drawn | source | picture | |
| A note to the right or the left of a participant | Drawn | source | picture | |
| A note over a participant | Drawn | source | picture | |
| A note over two participants | Drawn | source | picture | |
| A line break in a message, a note and a name | Drawn | source | picture | |
| A loop | Drawn | source | picture | |
| One way or another: alt and else | Drawn | source | picture | |
| Something that may not happen: opt | Drawn | source | picture | |
| Things done at once: par and and | Drawn | source | picture | |
| A block inside a block | Drawn | source | picture | |
| What must happen, and what to do when it cannot: critical and option | Drawn | source | picture | |
| A critical block with no options | Drawn | source | picture | |
| Where the sequence stops: break | Drawn | source | picture | |
| Rows highlighted with a coloured background, one inside another | Drawn | source | picture | |
| Comments on lines of their own | Drawn | source | picture | |
| Characters written as entity codes | Drawn | source | picture | |
| Messages numbered | Drawn | source | picture | |
| Messages numbered from a start, by a step | Drawn | source | picture | |
| A menu of links on a participant | Drawn, less something | The menus are left out: a page of Merlive opens no links | source | picture |
| A title in the diagram | Drawn | source | picture | |
| A title and a description for readers who cannot see it | Drawn | source | picture | |
| Statements parted by semicolons | Drawn | source | picture | |
| A title and settings in front matter | Drawn, less something | Mermaid's own settings are read past: the look and the numbering are the design's and the diagram's own | source | picture |
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
| Kind | Result | Sample | Picture |
|---|---|---|---|
| Sequence diagram | Drawn | source | picture |
| ZenUML sequence diagram | Left as Mermaid | source | |
| Event model | Left as Mermaid | source | |
| User journey | Left as Mermaid | source | |
| Timeline | Drawn | source | picture |
| Gantt chart | Left as Mermaid | source | |
| Git graph | Left as Mermaid | source |
Boxes and links
| Kind | Result | Sample | Picture |
|---|---|---|---|
| Class diagram | Drawn | source | picture |
| State diagram | Drawn | source | picture |
| Entity relationship diagram | Drawn | source | picture |
| Requirement diagram | Drawn | source | picture |
| C4 diagram | Drawn | source | picture |
| Block diagram | Drawn | source | picture |
| Architecture diagram | Drawn | source | picture |
| Swimlane diagram | Left as Mermaid | source | |
| Use case diagram | Left as Mermaid | source | |
| Agent flow | Left as Mermaid | source |
Tree
| Kind | Result | Sample | Picture |
|---|---|---|---|
| Mindmap | Drawn | source | picture |
| Tree view | Left as Mermaid | source | |
| Ishikawa (fishbone) diagram | Left as Mermaid | source | |
| Kanban board | Drawn | source | picture |
Chart
| Kind | Result | Sample | Picture |
|---|---|---|---|
| Treemap | Left as Mermaid | source | |
| Pie chart | Left as Mermaid | source | |
| Quadrant chart | Left as Mermaid | source | |
| XY chart | Left as Mermaid | source | |
| Sankey diagram | Left as Mermaid | source | |
| Radar chart | Left as Mermaid | source | |
| Packet diagram | Drawn | source | picture |
| Venn diagram | Left as Mermaid | source | |
| Cynefin framework | Left as Mermaid | source | |
| Wardley map | Left as Mermaid | source |
Grammar
| Kind | Result | Sample | Picture |
|---|---|---|---|
| Railroad (syntax) diagram | Left as Mermaid | source |
Written from docs/COVERAGE.md in the repository, so the two cannot disagree.