Mermaid-tiny support

mermaid plugin example

After a period of exploration, the mermaid plugin was officially changed to the oeyoews/mermaid plugin, and the mermaid-tiny version was used, reducing the size from 2.5M to 1.6M.

graph
a --> b
1 Like

Is this the compressed version, or can the size be further reduced using Uglify?

This is the compressed output of the Mermaid library. Theoretically, it can no longer be compressed further—it is already at its smallest size.

1 Like

Excellent! How can a theme be set? Is it similar to mermaid neutral?



1 Like

image

Since many people in tiddlywiki basically only use flowchart (graph), I removed other mermaid types and only kept the info, graph/flowchart/pie/state syntax to further reduce the size of this library.

Now this mermaid lib size only has 1M.

$__plugins_oeyoews_mermaid (1).json (1.2 MB)

2 Likes

Thank for providing two versions. This one is nearly the same size the old Mermaid plugin but includes more features and an updated library.

Is this the markdown version or standard TW version? I get errors on text/vnd.tiddlywiki tiddler?

It has nothing to do with markdown. What exactly is the error?

1 Like

It works. It seems I used tab character, which is not allowed.

Nice work. – I am impressed, what “tiny” means to different programmers :wink:

But calling it the little mermaid plugin might have its own problems :slight_smile:


support export mermaid svg file

2 Likes