A private adaptation of the logseq-plantuml-plugin.
Go to file
hkgnp 550583db34 Added support for changing background colour 2022-02-15 14:46:23 +08:00
.github updating readme 2022-02-15 12:22:09 +08:00
screenshots first commit 2022-02-13 03:06:00 +08:00
src Added support for changing background colour 2022-02-15 14:46:23 +08:00
.gitignore first commit 2022-02-13 03:06:00 +08:00
LICENSE.md first commit 2022-02-13 03:06:00 +08:00
README.md Added support for changing background colour 2022-02-15 14:46:23 +08:00
icon.svg first commit 2022-02-13 03:06:00 +08:00
package-lock.json Added error handling for wrong mermaid syntax 2022-02-14 18:30:44 +08:00
package.json Added support for changing background colour 2022-02-15 14:46:23 +08:00

README.md

❤️ Sponsor this project on Github

Overview

This simple plugin allows you to quickly insert mermaid diagrams in your notes.

Installation

If not available in the marketplace, download the latest release and manually load it into Logseq after unzipping.

Usage

To start, simply trigger it using /Draw mermaid diagram. Then add your mermaid syntax in the code block and click Render.

Changing background colour

Same steps as above, but before clicking Render, include the colour inside the renderer, e.g.

{{renderer :mermaid_abc123, purple}}

or

{{renderer :mermaid_abc123, #000000}}

Credits

mermaid.ink

mermaid-js-converter for the idea.