Hi all!
Is there a plugin, which can handle plantuml diagrams inside posts?
So if I type the below code, I’d like to have a nice plantuml graph there (editable, because I’d like to posts as a wiki).
@startuml
Bob -> Alice : hello
Alice -> Bob : go away
@enduml
2 „Gefällt mir“
sam
(Sam Saffron)
2. August 2019 um 02:40
2
I think some people experimented with that … what we have already is support for graphviz (which is way more powerful) and mermaid.
Repo: https://github.com/unfoldingWord-dev/discourse-mermaid
Overview
This plugin adds the Mermaid JS library to Discourse so that posts can make use of its features. It turns this:
[mermaid]
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
[/mermaid]
into this:
[55%20PM]
See the Mermaid JS si…
4 „Gefällt mir“
Thansk for the tips!
Yes, since PlantUML “compiles” to graphviz, one can say graphviz is better than PlantUML. But I’m sure you don’t prefer coding in asm over ruby, but asm is definitely more powerful .
Since you can fire up your own plantuml server and the plugin should just fire up a query and will get the result image I am suprised noone has integrated it yet.
I’d choose Mermaid, but PlantUML has way more type of diagrams, which would be usable for us.
Maybe I’ll start embedding images like
which is editable on http://www.plantuml.com/plantuml .
3 „Gefällt mir“
pfaffman
(Jay Pfaffman)
2. August 2019 um 13:08
4
If you have a budget you can post in marketplace .
3 „Gefällt mir“
sam
(Sam Saffron)
7. Februar 2023 um 05:59
7
Note… we support mermaid via our mermaid component
sequenceDiagram
participant bob
participant alice
bob->>alice: "Hello!"
alice->>bob: "Go away"
```mermaid height=380
sequenceDiagram
participant bob
participant alice
bob->>alice: "Hello!"
alice->>bob: "Go away"
```
4 „Gefällt mir“