ZUI

Search documentation

Find a page or a heading.

Editor Mermaid

A diagram block written in Mermaid, with a source pane while editing and the drawing when read.

tsx

Installation

bash

Usage

tsx
tsx

mermaid adds the mermaid block, whose source attribute holds the diagram. While editing it shows a source pane beside a drawing, and when read only the drawing. Its slash item is "Mermaid" and its command insertMermaid takes an optional source.

Run the command on the editor that Editor hands to onReady, as Document Editor shows:

tsx

The Viewer draws the same block, with the same feature in its features, wherever a stored document is only read.