zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.24k stars 1.8k forks source link

(Feature request) Is it possible to integrate the plantUML? #3246

Open zhang-stephen opened 1 year ago

zhang-stephen commented 1 year ago

Describe feature

the plantUML is more powerful than mermaid, and fortunately I found a plugin to integrate plantUML into CKEditor.

plugin doc: https://plantuml.com/en/ckeditordemo plugin: https://github.com/mojitogames/ckeditor_plantuml

but it's not under active development... 😞

Additional Information

No response

zadam commented 1 year ago

No, that's not planned. The main reason why Mermaid was chosen as opposed to (otherwise more mature) PlantUML is that PlantUML is a Java app and thus difficult to integrate into the node.js/electron app.

zhang-stephen commented 1 year ago

oh... that's so upset...

f-steff commented 10 months ago

This situation may have changed with the Javascript version of the PlantUML editor: https://github.com/plantuml/plantuml.js

But support for Kroki and configurable links to external editors (of which many are freely available on the net, and can also be selfhosted) is even higher on my wishlist. :-)

From https://kroki.io/ : Kroki provides a unified API with support for BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag, PacketDiag, RackDiag), BPMN, Bytefield, C4 (with PlantUML), D2, DBML, Ditaa, Erd, Excalidraw, GraphViz, Mermaid, Nomnoml, Pikchr, PlantUML, Structurizr, SvgBob, Symbolator, TikZ, UMLet, Vega, Vega-Lite, WaveDrom, WireViz...

zadam commented 10 months ago

The thing is - the choice has been made to use Mermaid.js and switching to something different is no longer possible (BC break), and at the same time I don't want to integrate multiple libraries doing roughly the same.

https://kroki.io/ seems interesting for some use cases, but not really for integrating into app like Trilium - it seems quite massive and likely not available as pure JS.

f-steff commented 10 months ago

Thank you for your answer. I fully understand your standpoint, when it comes to integrate everything. However, that was not my full intent. Instead I would like to be able to easily use links to an kroki instance which renders an image that's displayed as an image in Trilium context.

vleeuwenmenno commented 9 months ago

Is there any way to use DBML in Trilium at the moment? Or plugin support, so I can add kroki.io myself because I'd really like support for this as I'm using this quite often with https://dbdiagram.io but prefer to have this available on my notes.

rauenzi commented 9 months ago

You can definitely create a widget/script to make it available on your own instance, sure.