Notes, steps and the main path
Merlive reads a handful of lines of its own in your Mermaid. Every one is a Mermaid comment, starting %%, so every other renderer ignores it and your file still renders anywhere Mermaid does.
They say what you mean: what a box is for, which way through is the normal one, what a reader should be walked through. They never say where a box goes. There are no coordinates, anywhere.
A note, a step and a main path
%% note B:is what boxBmeans. A reader sees it on picking the box, and it prints as an appendix.%% main:names the path that gets the straight line. Here it says that "in stock" is the normal case, so the supplier's detour sits to one side. Without it, Merlive takes the longest path that takes no exception.%% step:is one stop of a walkthrough: its title, the links it lights, and what to say there. Readers go through them one at a time.
Open the live page under the picture, pick a box, and press through the steps.
Every line
All are Mermaid comments, anywhere in the block.
| Line | What it does |
|---|---|
%% note A: words | What box A means. Shown when the box is picked, and printed as an appendix |
%% step: Title | A>B>C | words | A step of the walkthrough along the links A to B to C |
%% step: Title | loop 1 | words | A step along the shortest loop; loop 2 is the next shortest |
%% step: Title | - | words | A step with nothing lit, for an opening or closing remark |
%% main: A>B>C>D | The path that gets the straight line. Without it, the longest path does that takes no exception: not a link with words out of a box that also has one without |
%% side: left | Branches and loops go to the left of the main path (above it, left to right). Default right |
%% kind red: Read-only data | What a kind of box means. The legend, and a picked box, say this instead of the kind's own name. A kind its author named for a colour (classDef red …) with no such line is named in a note, line |
%% turn: no | A flow written left to right that would be wider than a screen (1,100 px) is drawn top to bottom, and the command says so. This keeps it as written |
%% wrap: no | A timeline written left to right that would be wider than a screen runs on in bands, and the command says so. This keeps it in one row |
A step's path must follow links that exist; one that does not is named in a note, line and that part is left out.
Your agent can draft them
When a flowchart has no steps, the skill tells your agent to offer some: three to six, the normal path first and then each loop, drafted from the words of your own document. It shows you the lines it would add, and adds them only when you agree. It never invents what a box does: a note says only what the document says.
A sequence diagram needs none of this. Its page goes through the messages in order without being told.
Written from site/pages/lines.md in the repository, so the two cannot disagree.