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 likes
sam
(Sam Saffron)
2 augustus 2019 om 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…
Summary
Discourse Graphviz provides the ability to add graphs to posts using the DOT language.
Install Guide
This plugin is bundled with Discourse core. There is no need to install the plugin separately.
Features
This plugin uses the Viz.js library to render graphs.
To embed a graph use [graphviz] [/graphviz] bbcode. Optionally you can define layout engine attributes: [graphviz engine=neato]. If engine is not defined, it defaults to the dot engine…
4 likes
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 likes
pfaffman
(Jay Pfaffman)
2 augustus 2019 om 13:08
4
If you have a budget you can post in marketplace .
3 likes
sam
(Sam Saffron)
7 februari 2023 om 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 likes