Plantuml support

AI-generated summary

A discussion about integrating PlantUML support in Discourse is underway. pihentagy initiated the conversation, asking if a plugin exists to handle PlantUML diagrams inside posts, and provided an example of PlantUML code. sam responded, mentioning existing support for Graphviz and Mermaid, and shared relevant links.

pihentagy acknowledged the alternatives but expressed a preference for PlantUML due to its wider range of diagram types. They also noted the possibility of integrating PlantUML by firing up a query to a PlantUML server.

sam demonstrated the capabilities of Mermaid by creating a sequence diagram using the Discourse Mermaid component, highlighting an alternative solution. Meanwhile, pfaffman suggested posting in the Marketplace if a budget is available for customization.

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

I think some people experimented with that … what we have already is support for graphviz (which is way more powerful) and mermaid.

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 :troll:.

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 PlantUML Web Server.

If you have a budget you can post in Marketplace.

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"
```