feat(mermaid): add link to docs (closes #5378)

This commit is contained in:
Elian Doran
2025-11-02 22:32:36 +02:00
parent 8a63f2028c
commit 69182a1a42
7 changed files with 72 additions and 29 deletions

View File

@@ -1,10 +1,11 @@
# Mermaid Diagrams
> [!TIP]
> For a quick understanding of the Mermaid syntax, see <a class="reference-link" href="Mermaid%20Diagrams/Syntax%20reference.dat">Syntax reference</a> (official documentation).
<figure class="image image-style-align-center"><img style="aspect-ratio:886/663;" src="2_Mermaid Diagrams_image.png" width="886" height="663"></figure>
Trilium supports Mermaid, which adds support for various diagrams such as flowchart, sequence diagram, class diagram, state diagram, pie charts, etc., all using a text description of the chart instead of manually drawing the diagram.
For the official documentation of Mermaid.js see [mermaid.js.org/intro/](https://mermaid.js.org/intro/).
## Layouts
Depending on the chart being edited and user preference, there are two layouts supported by the Mermaid note type: